macro_rules! iwriteln {
    ($buf: expr, $($fmt:tt)*) => { ... };
}
Expand description

Like writeln! but using write().

For details on the context syntax see context!.

use std::fmt::Write;
use interpolator::iwriteln;

let mut buf = String::new();
iwriteln!(&mut buf, "{a}, {b:?}", a = 10, b:? = "test").unwrap();

assert_eq!( buf, "10, \"test\"\n" );