Trait libreda_db::layout::prelude::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,