pub struct Size {
pub width: usize,
pub height: usize,
}
Expand description
Rectangle dimensions
Fields§
§width: usize
Width of rectangle
height: usize
Height of rectangle
Implementations§
Trait Implementations§
source§impl PartialEq for Size
impl PartialEq for Size
impl Copy for Size
impl Eq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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