Enum byte_unit::ByteUnit [−][src]
pub enum ByteUnit { B, KB, KiB, MB, MiB, GB, GiB, TB, TiB, PB, PiB, }
The unit of bytes.
Variants
B
1 B = 1 byte
KB
1 KB = 1000 bytes
KiB
1 KiB = 1024 bytes
MB
1 MB = 1000000 bytes
MiB
1 MiB = 1048576 bytes
GB
1 GB = 1000000000 bytes
GiB
1 GiB = 1073741824 bytes
TB
1 TB = 1000000000000 bytes
TiB
1 TiB = 1099511627776 bytes
PB
1 PB = 1000000000000000 bytes
PiB
1 PiB = 1125899906842624 bytes
Trait Implementations
impl Debug for ByteUnit
[src]
impl Debug for ByteUnit
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 PartialEq for ByteUnit
[src]
impl PartialEq for ByteUnit
fn eq(&self, other: &ByteUnit) -> bool
[src]
fn eq(&self, other: &ByteUnit) -> 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
1.0.0
[src]This method tests for !=
.
impl Clone for ByteUnit
[src]
impl Clone for ByteUnit
fn clone(&self) -> ByteUnit
[src]
fn clone(&self) -> ByteUnit
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl ToString for ByteUnit
[src]
impl ToString for ByteUnit