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

This commit is contained in:
João Capucho authored and GitHub committed 2020-10-12 11:49:53 -04:00
1 parent 2b268c926c
commit b76dff9d9c
1 file changed
+8
+8
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,