bytes

Macro bytes 

Source
bytes!() { /* proc-macro */ }
Available on crate feature bytesize only.
Expand description

Parses a human-readable byte size string at compile time into an integer using bytesize.

assert_eq!(bytes!("1 kiB"), 1024u64);
assert_eq!(bytes!("1 kB"), 1000u64);