macro_rules! format {
( in $bump:expr, $fmt:expr, $($args:expr),* ) => { ... };
( in $bump:expr, $fmt:expr, $($args:expr,)* ) => { ... };
}
Expand description
Like the format!
macro for creating std::string::String
s 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!")