Expand description
Welcome to nbytes!
The nbytes
crate exists to provide compile-time evaluation of various
unit conversions to bytes. For example:
use nbytes::bytes;
assert_eq!(bytes![2; KiB], 2048);
assert_eq!(bytes![2; kB], 2000);
Macrosยง
- A conveneince wrapper for the dominant byte suffixes.
- This macro implements ISO/IEC 80000 byte suffixs.
- This macro implements byte suffixes using the JEDEC memory standards.
- This macro implements SI byte suffixes.