macro_rules! format { ( in $bump:expr, $fmt:expr, $($args:expr),* ) => { ... }; ( in $bump:expr, $fmt:expr, $($args:expr,)* ) => { ... }; }
Expand description
Like the format!
macro, but for creating bumpalo::collections::String
s.
Examples
use bumpalo::Bump;
let b = Bump::new();
let who = "World";
let s = bumpalo::format!(in &b, "Hello, {}!", who);
assert_eq!(s, "Hello, World!")