pub struct MemorySize(pub u32);Tuple Fields§
§0: u32Trait Implementations§
Source§impl Add<MemorySize> for MemoryOffset
impl Add<MemorySize> for MemoryOffset
Source§type Output = MemoryOffset
type Output = MemoryOffset
The resulting type after applying the
+ operator.Source§fn add(self, rhs: MemorySize) -> Self
fn add(self, rhs: MemorySize) -> Self
Performs the
+ operation. Read moreSource§impl Clone for MemorySize
impl Clone for MemorySize
Source§fn clone(&self) -> MemorySize
fn clone(&self) -> MemorySize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemorySize
impl Debug for MemorySize
Source§impl Display for MemorySize
impl Display for MemorySize
Source§impl Div for MemorySize
impl Div for MemorySize
Source§impl From<MemorySize> for usize
impl From<MemorySize> for usize
Source§fn from(val: MemorySize) -> Self
fn from(val: MemorySize) -> Self
Converts to this type from the input type.
Source§impl Ord for MemorySize
impl Ord for MemorySize
Source§fn cmp(&self, other: &MemorySize) -> Ordering
fn cmp(&self, other: &MemorySize) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MemorySize
impl PartialEq for MemorySize
Source§impl PartialOrd for MemorySize
impl PartialOrd for MemorySize
impl Copy for MemorySize
impl Eq for MemorySize
impl StructuralPartialEq for MemorySize
Auto Trait Implementations§
impl Freeze for MemorySize
impl RefUnwindSafe for MemorySize
impl Send for MemorySize
impl Sync for MemorySize
impl Unpin for MemorySize
impl UnwindSafe for MemorySize
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