core::write!
[−]
[src]
macro_rules! write { ($dst:expr, $($arg:tt)*) => ($dst.write_fmt(format_args!($($arg)*))) }
Use the format!`format!syntax to write data into a buffer of type` syntax to write data into a buffer of type &mut Write`&mut Write. See`.
See std::fmt`std::fmt` for more information.
Examples
fn main() { #![allow(unused_must_use)] use std::io::Write; let mut w = Vec::new(); write!(&mut w, "test"); write!(&mut w, "formatted {}", "arguments"); }use std::io::Write; let mut w = Vec::new(); write!(&mut w, "test"); write!(&mut w, "formatted {}", "arguments");