Enum human_size::multiples::Any [−][src]
pub enum Any { Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, Exabyte, Zettabyte, Yottabyte, Kibibyte, Mebibyte, Gigibyte, Tebibyte, Pebibyte, Exbibyte, Zebibyte, Yobibyte, // some variants omitted }
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
Byte
Kilobyte
Megabyte
Gigabyte
Terabyte
Petabyte
Exabyte
Zettabyte
Yottabyte
Kibibyte
Mebibyte
Gigibyte
Tebibyte
Pebibyte
Exbibyte
Zebibyte
Yobibyte
Trait Implementations
impl From<Byte> for Any
[src]
impl From<Byte> for Any
impl From<Kilobyte> for Any
[src]
impl From<Kilobyte> for Any
impl From<Megabyte> for Any
[src]
impl From<Megabyte> for Any
impl From<Gigabyte> for Any
[src]
impl From<Gigabyte> for Any
impl From<Terabyte> for Any
[src]
impl From<Terabyte> for Any
impl From<Petabyte> for Any
[src]
impl From<Petabyte> for Any
impl From<Exabyte> for Any
[src]
impl From<Exabyte> for Any
impl From<Zettabyte> for Any
[src]
impl From<Zettabyte> for Any
impl From<Yottabyte> for Any
[src]
impl From<Yottabyte> for Any
impl From<Kibibyte> for Any
[src]
impl From<Kibibyte> for Any
impl From<Mebibyte> for Any
[src]
impl From<Mebibyte> for Any
impl From<Gigibyte> for Any
[src]
impl From<Gigibyte> for Any
impl From<Tebibyte> for Any
[src]
impl From<Tebibyte> for Any
impl From<Pebibyte> for Any
[src]
impl From<Pebibyte> for Any
impl From<Exbibyte> for Any
[src]
impl From<Exbibyte> for Any
impl From<Zebibyte> for Any
[src]
impl From<Zebibyte> for Any
impl From<Yobibyte> for Any
[src]
impl From<Yobibyte> for Any
impl Copy for Any
[src]
impl Copy for Any
impl Clone for Any
[src]
impl Clone for Any
fn clone(&self) -> Any
[src]
fn clone(&self) -> Any
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Any
[src]
impl Debug for Any
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Any
[src]
impl Eq for Any
impl PartialEq for Any
[src]
impl PartialEq for Any
fn eq(&self, other: &Any) -> bool
[src]
fn eq(&self, other: &Any) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Multiple for Any
[src]
impl Multiple for Any
fn from_any(value: f64, multiple: Any) -> SpecificSize<Self>
[src]
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
]). Read more
fn into_any(size: SpecificSize<Self>) -> (f64, Any)
[src]
fn into_any(size: SpecificSize<Self>) -> (f64, Any)
The opposite of from_any
, converting self into the value and the generic multiple. Read more
impl FromStr for Any
[src]
impl FromStr for Any
type Err = ParsingError
The associated error which can be returned from parsing.
fn from_str(input: &str) -> Result<Any, Self::Err>
[src]
fn from_str(input: &str) -> Result<Any, Self::Err>
Parses a string s
to return a value of this type. Read more
impl Display for Any
[src]
impl Display for Any