pub struct Rect2d {
pub min: Vec2,
pub max: Vec2,
}Expand description
An axis-aligned rectangle, in plane units or in pixels depending on use.
Fields§
§min: Vec2The corner with the smaller coordinates.
max: Vec2The corner with the larger coordinates.
Implementations§
Trait Implementations§
impl Copy for Rect2d
impl StructuralPartialEq for Rect2d
Auto Trait Implementations§
impl Forget for Rect2d
impl Freeze for Rect2d
impl Move for Rect2d
impl RefUnwindSafe for Rect2d
impl Send for Rect2d
impl Sync for Rect2d
impl Unpin for Rect2d
impl UnsafeUnpin for Rect2d
impl UnwindSafe for Rect2d
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