pub struct Rect {
pub x: f32,
pub y: f32,
pub w: f32,
pub h: f32,
}
Expand description
A floating-point axis-aligned 2D rectangle.
Fields§
§x: f32
The horizontal coordinate of the top-left corner of the rectangle.
y: f32
The vertical coordinate of the top-left corner of the rectangle.
w: f32
The width of the rectangle.
h: f32
The height of the rectangle.
Implementations§
Trait Implementations§
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