Since std::fmt::Write is marked as unstable, anyone who uses Maud would get unstable warnings in their code.
We can initially make MarkupSink a newtype around &mut fmt::Write. It should expose .write_str() and .write_fmt() which forward directly to the inner Write, as well as .as_escaped() which creates an Escaper wrapper.
Sincestd::fmt::Write
is marked as unstable, anyone who uses Maud would get unstable warnings in their code.We can initially make
MarkupSink
a newtype around&mut fmt::Write
. It should expose.write_str()
and.write_fmt()
which forward directly to the innerWrite
, as well as.as_escaped()
which creates anEscaper
wrapper.