Trait somedoc::write::ConfigurableWriter[][src]

pub trait ConfigurableWriter<'a, W: Write, T: Default>: Writer<'a, W> {
    fn new_with(w: &'a mut W, config: T) -> Self;
}
Expand description

This trait can be implemented by a serializer to provide a common instantiation method when configuration may be passed to the new instance.

Required methods

fn new_with(w: &'a mut W, config: T) -> Self[src]

Expand description

Create a new writer using the write implementation provided, and the configuration value(s).

Implementors

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

fn new_with(w: &'a mut W, config: MarkdownFlavor) -> Self[src]

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

fn new_with(w: &'a mut W, preamble: LatexPreamble) -> Self[src]