pub enum MemoryUnit {
Bytes(u64),
MegaBytes(u64),
GigaBytes(u64),
}Expand description
Memory quantities accepted by QEMU -m.
Variants§
Trait Implementations§
Source§impl Arbitrary for MemoryUnit
impl Arbitrary for MemoryUnit
Source§type Parameters = (<u64 as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters)
type Parameters = (<u64 as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters, <u64 as Arbitrary>::Parameters)
The type of parameters that
arbitrary_with accepts for configuration
of the generated Strategy. Parameters must implement Default.Source§type Strategy = TupleUnion<((u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(u64) -> MemoryUnit>>), (u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(u64) -> MemoryUnit>>), (u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(u64) -> MemoryUnit>>))>
type Strategy = TupleUnion<((u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(u64) -> MemoryUnit>>), (u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(u64) -> MemoryUnit>>), (u32, Arc<Map<<u64 as Arbitrary>::Strategy, fn(u64) -> MemoryUnit>>))>
The type of
Strategy used to generate values of type Self.Source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
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 Display for MemoryUnit
impl Display for MemoryUnit
Source§impl FromStr for MemoryUnit
impl FromStr 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 UnsafeUnpin 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