pub struct USize {
pub width: u32,
pub height: u32,
}Expand description
A struct representing an unsigned
Size
determined by its width and height values.
Fields§
§width: u32The width value the Size is currently representing.
height: u32The height value the Size is currently representing.
Implementations§
Trait Implementations§
Source§impl AddAssign<u32> for USize
impl AddAssign<u32> for USize
Source§fn add_assign(&mut self, rhs: u32)
fn add_assign(&mut self, rhs: u32)
Performs the
+= operation. Read moreSource§impl DivAssign<u32> for USize
impl DivAssign<u32> for USize
Source§fn div_assign(&mut self, rhs: u32)
fn div_assign(&mut self, rhs: u32)
Performs the
/= operation. Read moreSource§impl MulAssign<u32> for USize
impl MulAssign<u32> for USize
Source§fn mul_assign(&mut self, rhs: u32)
fn mul_assign(&mut self, rhs: u32)
Performs the
*= operation. Read moreSource§impl RemAssign<u32> for USize
impl RemAssign<u32> for USize
Source§fn rem_assign(&mut self, rhs: u32)
fn rem_assign(&mut self, rhs: u32)
Performs the
%= operation. Read moreSource§impl SubAssign<u32> for USize
impl SubAssign<u32> for USize
Source§fn sub_assign(&mut self, rhs: u32)
fn sub_assign(&mut self, rhs: u32)
Performs the
-= operation. Read moreimpl Copy for USize
impl Eq for USize
impl StructuralPartialEq for USize
Auto Trait Implementations§
impl Freeze for USize
impl RefUnwindSafe for USize
impl Send for USize
impl Sync for USize
impl Unpin for USize
impl UnwindSafe for USize
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