pub struct MemSizeMib(/* private fields */);Expand description
Validated memory size in MiB. The upper bound is host-RAM-dependent and validated
at the controller against BackendCapabilities; the type-level constraint is
mem_size_mib >= 1.
Implementations§
Trait Implementations§
Source§impl Clone for MemSizeMib
impl Clone for MemSizeMib
Source§fn clone(&self) -> MemSizeMib
fn clone(&self) -> MemSizeMib
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemSizeMib
impl Debug for MemSizeMib
Source§impl<'de> Deserialize<'de> for MemSizeMib
impl<'de> Deserialize<'de> for MemSizeMib
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemSizeMib
impl PartialEq for MemSizeMib
Source§fn eq(&self, other: &MemSizeMib) -> bool
fn eq(&self, other: &MemSizeMib) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemSizeMib
impl Serialize for MemSizeMib
impl Copy for MemSizeMib
impl Eq for MemSizeMib
impl StructuralPartialEq for MemSizeMib
Auto Trait Implementations§
impl Freeze for MemSizeMib
impl RefUnwindSafe for MemSizeMib
impl Send for MemSizeMib
impl Sync for MemSizeMib
impl Unpin for MemSizeMib
impl UnsafeUnpin for MemSizeMib
impl UnwindSafe for MemSizeMib
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