pub struct Rect2 {
pub min_x: f32,
pub min_y: f32,
pub max_x: f32,
pub max_y: f32,
}Expand description
A 2D axis-aligned bounding rectangle.
Fields§
§min_x: f32§min_y: f32§max_x: f32§max_y: f32Implementations§
Trait Implementations§
impl Copy for Rect2
impl StructuralPartialEq for Rect2
Auto Trait Implementations§
impl Freeze for Rect2
impl RefUnwindSafe for Rect2
impl Send for Rect2
impl Sync for Rect2
impl Unpin for Rect2
impl UnsafeUnpin for Rect2
impl UnwindSafe for Rect2
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