Struct rust_raylib::math::Rectangle
source · #[repr(C)]pub struct Rectangle {
pub x: f32,
pub y: f32,
pub width: f32,
pub height: f32,
}
Expand description
Rectangle, 4 components
Fields§
§x: f32
Rectangle top-left corner position x
y: f32
Rectangle top-left corner position y
width: f32
Rectangle width
height: f32
Rectangle height
Implementations§
Trait Implementations§
source§impl PartialEq for Rectangle
impl PartialEq for Rectangle
impl Copy for Rectangle
impl StructuralPartialEq for Rectangle
Auto Trait Implementations§
impl RefUnwindSafe for Rectangle
impl Send for Rectangle
impl Sync for Rectangle
impl Unpin for Rectangle
impl UnwindSafe for Rectangle
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