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

Trait Implementations

impl From<Byte> for Any
[src]

Performs the conversion.

impl From<Kilobyte> for Any
[src]

Performs the conversion.

impl From<Megabyte> for Any
[src]

Performs the conversion.

impl From<Gigabyte> for Any
[src]

Performs the conversion.

impl From<Terabyte> for Any
[src]

Performs the conversion.

impl From<Petabyte> for Any
[src]

Performs the conversion.

impl From<Exabyte> for Any
[src]

Performs the conversion.

impl From<Zettabyte> for Any
[src]

Performs the conversion.

impl From<Yottabyte> for Any
[src]

Performs the conversion.

impl From<Kibibyte> for Any
[src]

Performs the conversion.

impl From<Mebibyte> for Any
[src]

Performs the conversion.

impl From<Gigibyte> for Any
[src]

Performs the conversion.

impl From<Tebibyte> for Any
[src]

Performs the conversion.

impl From<Pebibyte> for Any
[src]

Performs the conversion.

impl From<Exbibyte> for Any
[src]

Performs the conversion.

impl From<Zebibyte> for Any
[src]

Performs the conversion.

impl From<Yobibyte> for Any
[src]

Performs the conversion.

impl Copy for Any
[src]

impl Clone for Any
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Any
[src]

Formats the value using the given formatter. Read more

impl Eq for Any
[src]

impl PartialEq for Any
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Multiple for Any
[src]

Create a new [SpecificSize] from a value and multiple, the provided value must always valid (see [SpecificSize::new]). Read more

The opposite of from_any, converting self into the value and the generic multiple. Read more

impl FromStr for Any
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for Any
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Any

impl Sync for Any