1 stable release
1.0.0 | Jul 20, 2019 |
---|
#12 in #buf
300 downloads per month
6KB
Overview
A drop-in replacement for std::format!
, which can optionally accept a an
existing String
buffer.
use format_buf::format;
let mut buf = format!("Roses are {},\n", "red");
let () = format!(buf, "Violets are {}.", "blue");
assert_eq!(buf, "\
Roses are red,\n\
Violets are blue.\
")