pub trait PolygonSet<C: CoordinateConcept>: IntoSegments<C> {
type Point: PointConcept<C>;
type Segment: Segment<C, Point = Self::Point>;
type AllPoints: Iterator<Item = Self::Point>;
// Required methods
fn num_polygons(&self) -> usize;
fn convolved(self, p: &Self::Point) -> Self;
fn convolve(&mut self, p: &Self::Point);
fn scaled(self, scale: C::Coord) -> Self;
fn scale(&mut self, scale: C::Coord);
fn all_points(&self) -> Self::AllPoints;
}Expand description
Set of multiple polygons edges.
Required Associated Types§
Sourcetype Point: PointConcept<C>
type Point: PointConcept<C>
Point type used for the vertices.
Required Methods§
Sourcefn num_polygons(&self) -> usize
fn num_polygons(&self) -> usize
Get number of polygons.
Sourcefn all_points(&self) -> Self::AllPoints
fn all_points(&self) -> Self::AllPoints
Iterate over all vertices.
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.