pub trait MapPointwise<T> {
// Required method
fn transform<F>(&self, transformation: F) -> Self
where F: Fn(Point<T>) -> Point<T>;
}Expand description
Transform the geometrical object by transforming each point of it.
Required Methods§
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.
Implementors§
impl<T> MapPointwise<T> for MultiPolygon<T>where
T: CoordinateType,
impl<T> MapPointwise<T> for PointString<T>where
T: Copy,
impl<T> MapPointwise<T> for Polygon<T>where
T: CoordinateType,
impl<T> MapPointwise<T> for SimplePolygon<T>where
T: CoordinateType,
impl<T> MapPointwise<T> for Vector<T>where
T: Copy,
impl<T, S> MapPointwise<T> for Text<T, S>
Point wise transformation for a single point.
impl<T: Copy + PartialOrd> MapPointwise<T> for Rect<T>
Point wise transformation of the two corner points.
impl<T: Copy> MapPointwise<T> for Edge<T>
impl<T: Copy> MapPointwise<T> for Point<T>
Point wise transformation for a single point.