A drop-in replacement for std::format!, which can optionally accept a an
existing String buffer.
useformat_buf::format;letmut buf =format!("Roses are {},\n","red");let()=format!(buf,"Violets are {}.","blue");assert_eq!(buf,"\
Roses are red,\n\
Violets are blue.\")