pub struct Megabyte;Expand description
Multiple representing a Megabyte.
Represents a size of value * 1000_f64.powi(2). When parsing this multiple from text it expects MB.
Trait Implementations§
Source§impl Multiple for Megabyte
impl Multiple for Megabyte
Source§fn from_any(value: f64, multiple: Any) -> SpecificSize<Self>
fn from_any(value: f64, multiple: Any) -> SpecificSize<Self>
Create a new
SpecificSize from a value and multiple, the
provided value must always valid (see SpecificSize::new).Source§impl Ord for Megabyte
impl Ord for Megabyte
Source§impl PartialOrd for Megabyte
impl PartialOrd for Megabyte
impl Copy for Megabyte
impl Eq for Megabyte
impl StructuralPartialEq for Megabyte
Auto Trait Implementations§
impl Freeze for Megabyte
impl RefUnwindSafe for Megabyte
impl Send for Megabyte
impl Sync for Megabyte
impl Unpin for Megabyte
impl UnwindSafe for Megabyte
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