FormatSize

Trait FormatSize 

Source
pub trait FormatSize {
    // Required method
    fn format_size(self) -> FormattedSize;
}
Expand description

This trait adds format_size method to primitive u64 and usize types.

Required Methods§

Source

fn format_size(self) -> FormattedSize

Splits the original size into integral, fractional and adds a unit.

Implementations on Foreign Types§

Source§

impl FormatSize for u64

Source§

impl FormatSize for usize

Implementors§