Trait CoordTranslate
pub trait CoordTranslate {
type From;
// Required method
fn translate(&self, from: &Self::From) -> (i32, i32);
// Provided method
fn depth(&self, _from: &Self::From) -> i32 { ... }
}Available on crate feature
plot only.Expand description
The trait that translates some customized object to the backend coordinate
Required Associated Types§
type From
type From
Specifies the object to be translated from