humansize icon indicating copy to clipboard operation
humansize copied to clipboard

Humansize - A flexible crate for humanizing file sizes

Results 24 humansize issues
Sort by recently updated
recently updated
newest added

`file_size` returns a Result, but as far as I can tell the only case where it can actually return `Err` is if given a negative number. It'd be convenient to...

The function file_size outputs Result which does not play nicely with the ? operator when used within functions that depend on the std::error::Error trait. Would there be any consideration for...

By adding a type similar to the `DisplayFileSize` struct sketched below, it would be possible to: - Give a more convenient alternative API. - Avoid a heap allocation when formatting....

For the use case of displaying unit sizes for block devices, which are measured in sectors instead of bytes (512 bytes per sector).

I would appreciate if you could include full text of MIT and Apache-2.0 license and release new version of crate. That is requirement of Apache-2.0 to have license text along...

(for the decimal variant) It is used in the SI in lower case.