Trait sauron_core::Render[][src]

pub trait Render {
    fn render_with_indent(
        &self,
        buffer: &mut dyn Write,
        indent: usize,
        node_idx: &mut Option<usize>,
        compressed: bool
    ) -> Result; fn render(&self, buffer: &mut dyn Write) -> Result { ... }
fn render_compressed(&self, buffer: &mut dyn Write) -> Result { ... }
fn render_to_string(&self) -> String { ... } }
Expand description

render node, elements to a writable buffer

Required methods

render instance to a writable buffer with indention node_idx is for debugging purposes

Provided methods

render the node to a writable buffer

no new_lines, no indents

render compressed html to string

Implementors