Skip to main content

dwriteln

Macro dwriteln 

Source
macro_rules! dwriteln {
    ($output:expr, $template:literal, $($args:tt)*) => { ... };
    ($output:expr, $template:expr, $($args:tt)*) => { ... };
}
Expand description

Dynamic drop in writeln! replacement.

use core::fmt::Write;

let mut output = String::new();
dfmt::dwriteln!(&mut output, "Hello, {}!", "World").unwrap();
dfmt::dwriteln!(&mut output, "Hello, {}!".to_string(), "World").unwrap();

Refer to the dformat!() documentation for the full API overview.