Trait ToPolygon

Source
pub trait ToPolygon<T> {
    // Required method
    fn to_polygon(&self) -> Polygon<T>;
}
Expand description

Trait for the conversion of a geometric shape to a polygon.

Required Methods§

Source

fn to_polygon(&self) -> Polygon<T>

Convert the geometric object into a polygon.

Implementors§

Source§

impl<T> ToPolygon<T> for Geometry<T>

Source§

impl<T> ToPolygon<T> for Rect<T>
where T: Copy,