Macro bumpalo::format [−][src]
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!")