pub trait Map: Sized {
type Output<Kind>
where Kind: CoordinateSpace;
// Required method
fn map<Kind: CoordinateSpace>(
self,
f: impl FnOnce(Self::Output<Kind>) -> Self::Output<Kind>
) -> Self::Output<Kind>;
}
Expand description
Mapping from one coordinate space to another.
Required Associated Types§
sourcetype Output<Kind>
where
Kind: CoordinateSpace
type Output<Kind> where Kind: CoordinateSpace
The output type with the new coordinate space.