#[repr(C)]pub struct Rect {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
}
Expand description
The rect that is being used in various surface operations.
The origin is in the bottom left of the surface.
Fields§
§x: i32
X
of the origin.
y: i32
Y
of the origin.
width: i32
Rect width.
height: i32
Rect height.
Implementations§
Trait Implementations§
impl Copy for Rect
impl Eq 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