CoordTranslate

Trait CoordTranslate 

Source
pub trait CoordTranslate {
    type From;

    // Required method
    fn translate(&self, from: &Self::From) -> BackendCoord;
}
Expand description

The trait that translates some customized object to the backend coordinate

Required Associated Types§

Required Methods§

Source

fn translate(&self, from: &Self::From) -> BackendCoord

Translate the guest coordinate to the guest coordinate

Implementors§

Source§

impl CoordTranslate for Shift

Source§

type From = (i32, i32)

Source§

impl<C, T> CoordTranslate for T
where C: CoordTranslate, T: Deref<Target = C>,

Source§

impl<X: Ranged, Y: Ranged> CoordTranslate for Cartesian2d<X, Y>

Source§

type From = (<X as Ranged>::ValueType, <Y as Ranged>::ValueType)