pub struct Dimension {
pub width: u32,
pub height: u32,
}
Expand description
A rectangular dimension
Fields§
§width: u32
The width of the rectangle.
height: u32
The height of the rectangle.
Trait Implementations§
Source§impl Ord for Dimension
impl Ord for Dimension
Source§impl PartialOrd for Dimension
impl PartialOrd for Dimension
impl Copy for Dimension
impl Eq for Dimension
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnwindSafe for Dimension
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