Function format
fn format(args: Arguments<'_>) -> string::String
Takes an Arguments struct and returns the resulting formatted string.
The Arguments instance can be created with the format_args! macro.
Examples
Basic usage:
use fmt;
let s = format;
assert_eq!;
Please note that using format! might be preferable.
Example:
let s = format!;
assert_eq!;