pub enum InformationUnit {
Show 14 variants
    Bit,
    Byte,
    KiloByte,
    KibiByte,
    MegaByte,
    MebiByte,
    GigaByte,
    GibiByte,
    TeraByte,
    TebiByte,
    PetaByte,
    PebiByte,
    ExaByte,
    ExbiByte,
}Expand description
Size of information derived from bytes, used in MetricUnit::Information.
Defaults to byte. See also Units of
information.
Variants§
Bit
Bit ("bit"), corresponding to 1/8 of a byte.
Note that there are computer systems with a different number of bits per byte.
Byte
Byte ("byte").
KiloByte
Kilobyte ("kilobyte"), 10^3 bytes.
KibiByte
Kibibyte ("kibibyte"), 2^10 bytes.
MegaByte
Megabyte ("megabyte"), 10^6 bytes.
MebiByte
Mebibyte ("mebibyte"), 2^20 bytes.
GigaByte
Gigabyte ("gigabyte"), 10^9 bytes.
GibiByte
Gibibyte ("gibibyte"), 2^30 bytes.
TeraByte
Terabyte ("terabyte"), 10^12 bytes.
TebiByte
Tebibyte ("tebibyte"), 2^40 bytes.
PetaByte
Petabyte ("petabyte"), 10^15 bytes.
PebiByte
Pebibyte ("pebibyte"), 2^50 bytes.
ExaByte
Exabyte ("exabyte"), 10^18 bytes.
ExbiByte
Exbibyte ("exbibyte"), 2^60 bytes.
Implementations§
Trait Implementations§
Source§impl Clone for InformationUnit
 
impl Clone for InformationUnit
Source§fn clone(&self) -> InformationUnit
 
fn clone(&self) -> InformationUnit
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 InformationUnit
 
impl Debug for InformationUnit
Source§impl Default for InformationUnit
 
impl Default for InformationUnit
Source§fn default() -> InformationUnit
 
fn default() -> InformationUnit
Returns the “default value” for a type. Read more
Source§impl Display for InformationUnit
 
impl Display for InformationUnit
Source§impl Hash for InformationUnit
 
impl Hash for InformationUnit
Source§impl PartialEq for InformationUnit
 
impl PartialEq for InformationUnit
impl Copy for InformationUnit
impl Eq for InformationUnit
impl StructuralPartialEq for InformationUnit
Auto Trait Implementations§
impl Freeze for InformationUnit
impl RefUnwindSafe for InformationUnit
impl Send for InformationUnit
impl Sync for InformationUnit
impl Unpin for InformationUnit
impl UnwindSafe for InformationUnit
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
 
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
    T: ?Sized,
 
impl<T> PolicyExt for Twhere
    T: ?Sized,
§impl<T> ToStringFallible for Twhere
    T: Display,
 
impl<T> ToStringFallible for Twhere
    T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
 
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.