Struct freya_engine::prelude::Rect
source · #[repr(C)]pub struct Rect {
pub left: f32,
pub top: f32,
pub right: f32,
pub bottom: f32,
}
Fields§
§left: f32
The x coordinate of the rectangle’s left edge.
top: f32
The y coordinate of the rectangle’s top edge.
right: f32
The x coordinate of the rectangle’s right edge.
bottom: f32
The y coordinate of the rectangle’s bottom edge.
Implementations§
Trait Implementations§
source§impl PartialEq<Rect> for Rect
impl PartialEq<Rect> for Rect
impl 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§
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