aoclib::geometry::map

Trait ContextFrom

source
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

Object Safety§

This trait is not object safe.

Implementors§

source§

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