macro_rules! dwrite {
($output:expr, $template:literal, $($args:tt)*) => { ... };
($output:expr, $template:expr, $($args:tt)*) => { ... };
}Expand description
Dynamic drop in write! replacement.
use core::fmt::Write;
let mut output = String::new();
dfmt::dwrite!(&mut output, "Hello, {}!", "World").unwrap();
dfmt::dwrite!(&mut output, "Hello, {}!".to_string(), "World").unwrap();Refer to the dformat!() documentation for the full API overview.