Skip to main content

format_bytes_human

Function format_bytes_human 

Source
pub fn format_bytes_human(bytes: u64) -> String
Expand description

Formats a raw byte count into binary human units (B, KiB, MiB, GiB).

§Arguments

  • u64 - Byte length.

§Returns

  • String - Formatted size string.