[][src]Trait publication::Emitter

pub trait Emitter {
    fn emit_block(&self, block: Block, out: &mut String);

    fn emit_elements(&self, elements: Vec<Element>, out: &mut String) { ... }
fn emit_element(&self, element: Element, out: &mut String) { ... }
fn emit_text(&self, text: String, out: &mut String) { ... }
fn emit_extension_element(
        &self,
        _tag: ExtensionTag,
        element: Element,
        out: &mut String
    ) { ... } }

Required methods

fn emit_block(&self, block: Block, out: &mut String)

Loading content...

Provided methods

fn emit_elements(&self, elements: Vec<Element>, out: &mut String)

fn emit_element(&self, element: Element, out: &mut String)

fn emit_text(&self, text: String, out: &mut String)

fn emit_extension_element(
    &self,
    _tag: ExtensionTag,
    element: Element,
    out: &mut String
)

Loading content...

Implementors

impl Emitter for HtmlEmitter[src]

impl Emitter for TextEmitter[src]

Loading content...