Trait somedoc::write::Writer [−][src]
This trait can be implemented by a serializer to provide a common instantiation method.
Required methods
fn new(w: &'a mut W) -> Self where
Self: Sized,
[src]
Self: Sized,
Create a new writer using the write implementation provided.
fn write_document(&self, doc: &Document) -> Result<()>
[src]
Format and write the provided document using the Write
instance given during construction.