pub struct Rect {
pub x: i16,
pub y: i16,
pub w: i16,
pub h: i16,
}
Expand description
A simple struct describing a rect with integer coordinates.
Fields§
§x: i16
X position.
y: i16
Y position.
w: i16
Width.
h: i16
Height.
Trait Implementations§
Source§impl PartialOrd for Rect
impl PartialOrd for Rect
impl Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnwindSafe for Rect
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