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§
Sourcefn translate(&self, from: &Self::From) -> BackendCoord
fn translate(&self, from: &Self::From) -> BackendCoord
Translate the guest coordinate to the guest coordinate