Trait Polygon90

Source
pub trait Polygon90<C: CoordinateConcept>: Polygon<C> + Polygon90WithHoles<C> {
    type CompactIterator: Iterator<Item = C::Coord>;

    // Required method
    fn compact_iter(&self) -> Self::CompactIterator;
}
Expand description

Concept of a polygon with axis-aligned edges. The polygon consists of a single closed loop of vertices, i.e. has no holes.

Required Associated Types§

Source

type CompactIterator: Iterator<Item = C::Coord>

Iterator over alternating x/y coordinates of the points. Starts with an x coordinate.

Required Methods§

Source

fn compact_iter(&self) -> Self::CompactIterator

Iterate over alternating x/y coordinates of the polygon vertices. Start with an x coordinate.

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§