Function write
fn write(output: &mut dyn Write, fmt: Arguments<'_>) -> Result
Takes an output stream and an Arguments struct that can be precompiled with
the format_args! macro.
The arguments will be formatted according to the specified format string into the output stream provided.
Examples
Basic usage:
use fmt;
let mut output = Stringnew;
write
.expect;
assert_eq!;
Please note that using write! might be preferable. Example:
use Write;
let mut output = Stringnew;
write!
.expect;
assert_eq!;