pub trait RectTrait: GeometryTrait {
type CoordType<'a>: 'a + CoordTrait<T = <Self as GeometryTrait>::T>
where Self: 'a;
// Required methods
fn min(&self) -> Self::CoordType<'_>;
fn max(&self) -> Self::CoordType<'_>;
}
Expand description
A trait for accessing data from a generic Rect.
A Rect is an axis-aligned bounded 2D rectangle whose area is
defined by minimum and maximum Point
s.
Required Associated Types§
Sourcetype CoordType<'a>: 'a + CoordTrait<T = <Self as GeometryTrait>::T>
where
Self: 'a
type CoordType<'a>: 'a + CoordTrait<T = <Self as GeometryTrait>::T> where Self: 'a
The type of each underlying coordinate, which implements CoordTrait
Required Methods§
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.