pub enum MemoryUnit {
Bytes(u64),
MegaBytes(u64),
GigaBytes(u64),
}Variants§
Trait Implementations§
Source§impl Clone for MemoryUnit
impl Clone for MemoryUnit
Source§fn clone(&self) -> MemoryUnit
fn clone(&self) -> MemoryUnit
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 MemoryUnit
impl Debug for MemoryUnit
Source§impl Hash for MemoryUnit
impl Hash for MemoryUnit
Source§impl Ord for MemoryUnit
impl Ord for MemoryUnit
Source§fn cmp(&self, other: &MemoryUnit) -> Ordering
fn cmp(&self, other: &MemoryUnit) -> 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 MemoryUnit
impl PartialEq for MemoryUnit
Source§impl PartialOrd for MemoryUnit
impl PartialOrd for MemoryUnit
impl Eq for MemoryUnit
impl StructuralPartialEq for MemoryUnit
Auto Trait Implementations§
impl Freeze for MemoryUnit
impl RefUnwindSafe for MemoryUnit
impl Send for MemoryUnit
impl Sync for MemoryUnit
impl Unpin for MemoryUnit
impl UnwindSafe for MemoryUnit
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