pub struct Rect {
pub min_x: f32,
pub min_y: f32,
pub max_x: f32,
pub max_y: f32,
}Expand description
An axis-aligned rectangle, used for a path’s or bitmap’s bounds.
Fields§
§min_x: f32Minimum x, or f32::INFINITY while empty.
min_y: f32Minimum y, or f32::INFINITY while empty.
max_x: f32Maximum x, or f32::NEG_INFINITY while empty.
max_y: f32Maximum y, or f32::NEG_INFINITY while empty.
Implementations§
Source§impl Rect
impl Rect
Trait Implementations§
impl Copy for Rect
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnsafeUnpin 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