Expand description
A simple struct describing a rect with integer coordinates.
Fields
x: i16X position.
y: i16Y position.
w: i16Width.
h: i16Height.
Trait Implementations
sourceimpl PartialOrd<Rect> for Rect
impl PartialOrd<Rect> for Rect
sourcefn partial_cmp(&self, other: &Rect) -> Option<Ordering>
fn partial_cmp(&self, other: &Rect) -> Option<Ordering>
1.0.0 · sourcefn 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 Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more