Enum byte_unit::ByteUnit [−][src]
pub enum ByteUnit {
B,
KB,
KiB,
MB,
MiB,
GB,
GiB,
TB,
TiB,
PB,
PiB,
}The unit of bytes.
Variants
B1 B = 1 byte
KB1 KB = 1000 bytes
KiB1 KiB = 1024 bytes
MB1 MB = 1000000 bytes
MiB1 MiB = 1048576 bytes
GB1 GB = 1000000000 bytes
GiB1 GiB = 1073741824 bytes
TB1 TB = 1000000000000 bytes
TiB1 TiB = 1099511627776 bytes
PB1 PB = 1000000000000000 bytes
PiB1 PiB = 1125899906842624 bytes
Trait Implementations
impl Debug for ByteUnit[src]
impl Debug for ByteUnitfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for ByteUnit[src]
impl PartialEq for ByteUnitfn eq(&self, other: &ByteUnit) -> bool[src]
fn eq(&self, other: &ByteUnit) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Clone for ByteUnit[src]
impl Clone for ByteUnitfn clone(&self) -> ByteUnit[src]
fn clone(&self) -> ByteUnitReturns 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)1.0.0
[src]Performs copy-assignment from source. Read more
impl ToString for ByteUnit[src]
impl ToString for ByteUnit