Trait CoordMapper
pub trait CoordMapper {
type Output;
// Required method
fn map<CT>(
coord_trans: &CT,
from: &<CT as CoordTranslate>::From,
rect: &Rect,
) -> Self::Output
where CT: CoordTranslate;
}Expand description
Useful to translate from guest coordinates to backend coordinates
Required Associated Types§
type Output
type Output
Specifies the output data from the translation
Required Methods§
fn map<CT>(
coord_trans: &CT,
from: &<CT as CoordTranslate>::From,
rect: &Rect,
) -> Self::Outputwhere
CT: CoordTranslate,
fn map<CT>(
coord_trans: &CT,
from: &<CT as CoordTranslate>::From,
rect: &Rect,
) -> Self::Outputwhere
CT: CoordTranslate,
Performs the translation from guest coordinates to backend coordinates
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.