pub fn byte_rate(input: &str) -> Result<ByteRate, ParseError>Expand description
A byte throughput: 10MiB/s, 1048576B/s, 64KiBps, 5 MB / sec.
The rate is a size unit over a time unit. You can also write /s as the
suffix ps. The time unit can be any duration, as in 1GiB/h.
ยงErrors
ParseError if the magnitude is not a finite decimal number, the unit is
missing on a non-zero magnitude, the first half of the compound unit is not a
size, or the second half is not a duration.