pub fn byte_size(input: &str) -> Result<ByteSize, ParseError>Expand description
A byte count: 1024 → error, 1024B, 512MiB, 1.5 GiB, 2MB.
§Errors
ParseError if the magnitude is not a finite decimal number, the unit is
missing on a non-zero magnitude, or the unit is not a size.