Trait somedoc::write::Writer[][src]

pub trait Writer<'a, W: Write> {
    fn new(w: &'a mut W) -> Self
    where
        Self: Sized
;
fn write_document(&self, doc: &Document) -> Result<()>; }

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]

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.

Loading content...

Implementors

impl<'a, W: Write> Writer<'a, W> for HtmlWriter<'a, W>[src]

impl<'a, W: Write> Writer<'a, W> for JsonWriter<'a, W>[src]

impl<'a, W: Write> Writer<'a, W> for LatexWriter<'a, W>[src]

impl<'a, W: Write> Writer<'a, W> for MarkdownWriter<'a, W>[src]

Loading content...