Function std::fmt::write

pub fn write(output: &mut Writer, args: &Arguments)

The write function takes an output stream, a precompiled format string, and a list of arguments. The arguments will be formatted according to the specified format string into the output stream provided.

Arguments

Example

use std::fmt;
let w: &mut io::Writer = ...;
format_args!(|args| { fmt::write(w, args) }, "Hello, {}!", "world");