Docs.rs
convert-byte-size-string-1.1.2
convert-byte-size-string 1.1.2
Permalink
Docs.rs crate page
MIT
Links
Repository
crates.io
Source
Owners
demize
Dependencies
Versions
85.71%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate
convert_byte_size_string
convert_
byte_
size_
string
1.1.2
All Items
Crate Items
Enums
Functions
Crates
convert_byte_size_string
Crate
convert_byte_size_string
Copy item path
Settings
Help
Summary
Source
Enums
§
Conversion
Error
Represents possible errors the library can return.
Functions
§
convert_
to_
bytes
Convert the provided string to a u128 value containing the number of bytes represented by the string. Implies the base to use based on the string, e.g. “KiB” uses base 2 and “KB” uses base 10.
convert_
to_
bytes_
base_
2
Like
convert_to_bytes
but forces the units to be treated as base 2 units (multiples of 1024).
convert_
to_
bytes_
base_
10
Like
convert_to_bytes
but forces the units to be treated as base 10 units (multiples of 1000).