Skip to main content

ByteFormatter

Trait ByteFormatter 

Source
pub trait ByteFormatter {
    // Required method
    fn formatted_bytes(&self, bytes: usize) -> String;
}
Expand description

Trait for formatting byte values.

Required Methods§

Source

fn formatted_bytes(&self, bytes: usize) -> String

Formats a byte count in a human-readable format (B, KB, MB, GB).

Implementors§