Macro byte_unit::n_mib_bytes [−][src]
macro_rules! n_mib_bytes { () => { ... }; ($x:expr) => { ... }; ($x:expr, $t:ty) => { ... }; }
Convert n MiB to bytes.
Examples
extern crate byte_unit; let result = byte_unit::n_mib_bytes!(4); assert_eq!(4194304, result);
extern crate byte_unit; let result = byte_unit::n_mib_bytes!(2.5, f64); assert_eq!(2621440, result);