Registry / utility / memory-units

memory-units

JSON →
library0.4.0rscratesunverified

Provides safe conversions between units of memory (bytes, kilobytes, etc.).

# Cargo.toml [dependencies] memory_units = "0.4.0"
INSTALL
IMPORT
SIG · MEMORY-UNITS
M
memory-units
utilityrustv0.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Bytes
use memory_units::Bytes;

Create a Bytes value from a number.

use memory_units::Bytes; fn main() { let b = Bytes::from(1024); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
memory-units — cargo add memory-units · libregistry