pub trait ContextFrom<T> {
    type Context;

    // Required method
    fn ctx_from(t: T, position: Point, context: &Self::Context) -> Self;
}
Expand description

Safe fast value-to-value conversion which consumes the input value and references some context.

This trait should be implemented in preference to ContextInto.

Required Associated Types§

Required Methods§

source

fn ctx_from(t: T, position: Point, context: &Self::Context) -> Self

Implementors§

source§

impl<A, B> ContextFrom<A> for Bwhere B: From<A>,

§

type Context = ()