macro_rules! bytes_format {
($bytes:tt) => { ... };
($bytes:tt,$precision:tt) => { ... };
}
Expand description
bytes_format to format bytes to human-readable string
Example: 50486525485 => “5.05 GB”
macro_rules! bytes_format {
($bytes:tt) => { ... };
($bytes:tt,$precision:tt) => { ... };
}
bytes_format to format bytes to human-readable string
Example: 50486525485 => “5.05 GB”