pub trait ByteFormatter {
// Required method
fn formatted_bytes(&self, bytes: usize) -> String;
}Expand description
Trait for formatting byte values.
Required Methods§
Sourcefn formatted_bytes(&self, bytes: usize) -> String
fn formatted_bytes(&self, bytes: usize) -> String
Formats a byte count in a human-readable format (B, KB, MB, GB).