Added the new method to the msl Writer (#236)

This commit is contained in:
João Capucho
2020-10-12 16:49:53 +01:00
committed by GitHub
parent 2b268c926c
commit b76dff9d9c

View File

@@ -370,6 +370,14 @@ fn separate(is_last: bool) -> &'static str {
}
impl<W: Write> Writer<W> {
/// Creates a new `Writer` instance
pub fn new(out: W) -> Self {
Writer {
out,
typifier: Typifier::new(),
}
}
fn put_call(
&mut self,
name: &str,