pub struct Size<Unit> {
pub width: Unit,
pub height: Unit,
}
Expand description
Generic size
Fields§
§width: Unit
§height: Unit
Trait Implementations§
impl<Unit: Copy> Copy for Size<Unit>
Auto Trait Implementations§
impl<Unit> Freeze for Size<Unit>where
Unit: Freeze,
impl<Unit> RefUnwindSafe for Size<Unit>where
Unit: RefUnwindSafe,
impl<Unit> Send for Size<Unit>where
Unit: Send,
impl<Unit> Sync for Size<Unit>where
Unit: Sync,
impl<Unit> Unpin for Size<Unit>where
Unit: Unpin,
impl<Unit> UnwindSafe for Size<Unit>where
Unit: UnwindSafe,
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