[−][src]Crate nbytes
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
bytes | A conveneince wrapper for the dominant byte suffixes. |
iec | This macro implements ISO/IEC 80000 byte suffixs. |
jedec | This macro implements byte suffixes using the JEDEC memory standards. |
si | This macro implements SI byte suffixes. |