pub struct Rectangle {
pub left: i32,
pub top: i32,
pub width: u32,
pub height: u32,
}
Available on crate feature
v1_18
only.Expand description
Rectangle geometry.
The region is represented by a left top corner position, and a size defined by width and height. All the interior points and the edge are part of the region.
Fields§
§left: i32
§top: i32
§width: u32
§height: u32
Trait Implementations§
impl Copy for Rectangle
impl Eq for Rectangle
impl StructuralPartialEq for Rectangle
Auto Trait Implementations§
impl Freeze for Rectangle
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