pub trait CoordTranslate {
type From;
// Required method
fn translate(&self, from: &Self::From) -> (i32, i32);
// Provided method
fn depth(&self, _from: &Self::From) -> i32 { ... }
}
Expand description
The trait that translates some customized object to the backend coordinate