pub fn parse_size(s: &str) -> Result<u64, UnitError>Expand description
Parses a size: a whole number followed by B, KiB, MiB or GiB.
§Errors
Returns UnitError::Size for anything else (decimal units such as MB aren’t
accepted, to avoid confusing them with binary ones).