pub fn format_bytes(bytes: usize) -> StringExpand description
Format byte size into human-readable string.
Converts raw byte counts into human-readable format using appropriate units (B, KB, MB, GB, TB).
ยงExamples
assert_eq!(format_bytes(1024), "1.00 KB");
assert_eq!(format_bytes(1048576), "1.00 MB");