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: PartialOrd> PartialOrd for Rect<N>
impl<N: PartialOrd> PartialOrd for Rect<N>
impl<N: Copy> Copy for Rect<N>
impl<N: Eq> Eq for Rect<N>
impl<N> StructuralPartialEq for Rect<N>
Auto Trait Implementations§
impl<N> Freeze for Rect<N>where
N: Freeze,
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