macro_rules! witeln {
($writer:expr, $($arg:tt)*) => { ... };
($writer:expr) => { ... };
}
Writes to a specified writer, with an appended newline. Analogous to writeln!
.
See the documentation for wite!
.
When there are no arguments, the comma may be omitted.
witeln!(file).unwrap();
witeln!(file, "Hi").unwrap();