macro_rules! iwriteln { ($buf: expr, $($fmt:tt)*) => { ... }; }
Like writeln! but using write().
writeln!
write()
For details on the context syntax see context!.
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" );