pub struct Rect<N> {
pub min: Point<N>,
pub max: Point<N>,
}
Expand description
A rectangle, with top-left corner at min
, and bottom-right corner at
max
.
Fields§
§min: Point<N>
§max: Point<N>
Implementations§
Trait Implementations§
source§impl<N: Ord> Ord for Rect<N>
impl<N: Ord> Ord for Rect<N>
source§impl<N: PartialEq> PartialEq for Rect<N>
impl<N: PartialEq> PartialEq for Rect<N>
source§impl<N: PartialOrd> PartialOrd for Rect<N>
impl<N: PartialOrd> PartialOrd for Rect<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 moreimpl<N: Copy> Copy for Rect<N>
impl<N: Eq> Eq for Rect<N>
impl<N> StructuralEq for Rect<N>
impl<N> StructuralPartialEq for Rect<N>
Auto Trait Implementations§
impl<N> RefUnwindSafe for Rect<N>where
N: RefUnwindSafe,
impl<N> Send for Rect<N>where
N: Send,
impl<N> Sync for Rect<N>where
N: Sync,
impl<N> Unpin for Rect<N>where
N: Unpin,
impl<N> UnwindSafe for Rect<N>where
N: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more