Enum dua::ByteFormat [−][src]
pub enum ByteFormat {
Metric,
Binary,
Bytes,
GB,
GiB,
MB,
MiB,
}
Expand description
Specifies a way to format bytes
Variants
Metric
metric format, based on 1000.
Binary
binary format, based on 1024
Bytes
raw bytes, without additional formatting
GB
only gigabytes without smart-unit
GiB
only gibibytes without smart-unit
MB
only megabytes without smart-unit
MiB
only mebibytes without smart-unit
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ByteFormat
impl Send for ByteFormat
impl Sync for ByteFormat
impl Unpin for ByteFormat
impl UnwindSafe for ByteFormat
Blanket Implementations
Mutably borrows from an owned value. Read more