pub struct Size {
pub width: i32,
pub height: i32,
}Expand description
A size with integer dimensions.
Fields§
§width: i32§height: i32Implementations§
Trait Implementations§
Source§impl From<Size> for miracle_size_t
impl From<Size> for miracle_size_t
Source§impl From<miracle_size_t> for Size
impl From<miracle_size_t> for Size
Source§fn from(value: miracle_size_t) -> Self
fn from(value: miracle_size_t) -> Self
Converts to this type from the input type.
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 UnsafeUnpin 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