Trait plotters::prelude::CoordTranslate[][src]

pub trait CoordTranslate {
    type From;
    fn translate(&self, from: &Self::From) -> BackendCoord;

    fn depth(&self, _from: &Self::From) -> i32 { ... }
}
Expand description

The trait that translates some customized object to the backend coordinate

Associated Types

Required methods

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

Translate the guest coordinate to the guest coordinate

Provided methods

fn depth(&self, _from: &Self::From) -> i32[src]

Get the Z-value of current coordinate

Implementors

impl CoordTranslate for Shift[src]

type From = BackendCoord

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

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

type From = C::From

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

impl<X: Ranged, Y: Ranged> CoordTranslate for Cartesian2d<X, Y>[src]

type From = (X::ValueType, Y::ValueType)

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

impl<X: Ranged, Y: Ranged, Z: Ranged> CoordTranslate for Cartesian3d<X, Y, Z>[src]

type From = (X::ValueType, Y::ValueType, Z::ValueType)

fn translate(&self, coord: &Self::From) -> BackendCoord[src]

fn depth(&self, coord: &Self::From) -> i32[src]