Macro format
macro_rules! format {
( in $bump:expr, $fmt:expr, $($args:expr),* ) => { ... };
( in $bump:expr, $fmt:expr, $($args:expr,)* ) => { ... };
}
Available on crate feature
dep_bumpalo
only.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!")