Enum dua::ByteFormat [−][src]
pub enum ByteFormat {
Metric,
Binary,
Bytes,
GB,
GiB,
MB,
MiB,
}Specifies a way to format bytes
Variants
metric format, based on 1000.
binary format, based on 1024
raw bytes, without additional formatting
only gigabytes without smart-unit
only gibibytes without smart-unit
only megabytes without smart-unit
only mebibytes without smart-unit
Implementations
impl ByteFormat[src]
impl ByteFormat[src]pub fn width(self) -> usize[src]
pub fn total_width(self) -> usize[src]
pub fn display(self, bytes: u128) -> ByteFormatDisplay[src]
Trait Implementations
impl Clone for ByteFormat[src]
impl Clone for ByteFormat[src]fn clone(&self) -> ByteFormat[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for ByteFormat[src]
impl Copy for ByteFormat[src]Auto Trait Implementations
impl RefUnwindSafe for ByteFormat
impl RefUnwindSafe for ByteFormatimpl Send for ByteFormat
impl Send for ByteFormatimpl Sync for ByteFormat
impl Sync for ByteFormatimpl Unpin for ByteFormat
impl Unpin for ByteFormatimpl UnwindSafe for ByteFormat
impl UnwindSafe for ByteFormat