Trait plotters::coord::CoordTranslate
source · pub trait CoordTranslate {
type From;
// Required method
fn translate(&self, from: &Self::From) -> BackendCoord;
// Provided method
fn depth(&self, _from: &Self::From) -> i32 { ... }
}
Expand description
The trait that translates some customized object to the backend coordinate
Required Associated Types§
Required Methods§
sourcefn translate(&self, from: &Self::From) -> BackendCoord
fn translate(&self, from: &Self::From) -> BackendCoord
Translate the guest coordinate to the guest coordinate