Trait Rectangle

Source
pub trait Rectangle<C: CoordinateConcept>: Polygon90<C> {
    type Interval: Interval<C::Coord>;

    // Required method
    fn get(&self, orientation: Orientation2D) -> Self::Interval;
}
Expand description

Concept of an axis-aligned rectangle.

Required Associated Types§

Source

type Interval: Interval<C::Coord>

Type used for representing a one-dimensional interval.

Required Methods§

Source

fn get(&self, orientation: Orientation2D) -> Self::Interval

Get the interval which is spanned by the rectangle in the given orientation.

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§