Macro bytes_utils::format_bytes[][src]

macro_rules! format_bytes {
    ($($arg: tt)*) => { ... };
}

The format macro, but returning Str.

Examples

use bytes_utils::{format_bytes, Str};
let s: Str = format_bytes!("Hello {}", "world");
assert_eq!("Hello world", s);