#[non_exhaustive]pub enum Any {
Show 17 variants
Byte,
Kilobyte,
Megabyte,
Gigabyte,
Terabyte,
Petabyte,
Exabyte,
Zettabyte,
Yottabyte,
Kibibyte,
Mebibyte,
Gigibyte,
Tebibyte,
Pebibyte,
Exbibyte,
Zebibyte,
Yobibyte,
}Expand description
A multiple which can represent all multiples.
This is mainly used to parse a size from a string, but can also be used when you don’t really care about the multiple or want to maintain the multiple from the parsed string.
For documentation of each variant see the equivalent struct in this module.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Byte
Kilobyte
Megabyte
Gigabyte
Terabyte
Petabyte
Exabyte
Zettabyte
Yottabyte
Kibibyte
Mebibyte
Gigibyte
Tebibyte
Pebibyte
Exbibyte
Zebibyte
Yobibyte
Trait Implementations§
Source§impl Multiple for Any
impl Multiple for Any
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).impl Copy for Any
impl Eq for Any
impl StructuralPartialEq for Any
Auto Trait Implementations§
impl Freeze for Any
impl RefUnwindSafe for Any
impl Send for Any
impl Sync for Any
impl Unpin for Any
impl UnwindSafe for Any
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