[][src]Macro bumpalo::format

macro_rules! format {
    ( in $bump:expr, $fmt:expr, $($args:expr),* ) => { ... };
}

Like the format! macro for creating std::string::Strings but for bumpalo::collections::String.

Examples

use bumpalo::Bump;

let b = Bump::new();

let who = "World";
let s = bumpalo::format!(in &b, "Hello, {}!", who);
assert_eq!(s, "Hello, World!")