swrite

Macro swriteln

Source
macro_rules! swriteln {
    ($dst:expr) => { ... };
    ($dst:expr,) => { ... };
    ($dst:expr, $($arg:tt)*) => { ... };
}
Expand description

Write formatted text to the given String, followed by a newline.

ยงExample

use swrite::{SWrite, swriteln};
let mut s = String::new();
swriteln!(s, "The answer is {}.", 42);