Struct glyph_brush::Rectangle
source · pub struct Rectangle<N> {
pub min: [N; 2],
pub max: [N; 2],
}
Expand description
A rectangle, with top-left corner at min, and bottom-right corner at max.
Fields§
§min: [N; 2]
§max: [N; 2]
Implementations§
Trait Implementations§
source§impl<N> Ord for Rectangle<N>where
N: Ord,
impl<N> Ord for Rectangle<N>where N: Ord,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<N> PartialEq<Rectangle<N>> for Rectangle<N>where
N: PartialEq<N>,
impl<N> PartialEq<Rectangle<N>> for Rectangle<N>where N: PartialEq<N>,
source§impl<N> PartialOrd<Rectangle<N>> for Rectangle<N>where
N: PartialOrd<N>,
impl<N> PartialOrd<Rectangle<N>> for Rectangle<N>where N: PartialOrd<N>,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more