Trait svgbob::Render[]

pub trait Render {
    fn render_with_indent(
        &self,
        buffer: &mut dyn Write,
        indent: usize,
        node_idx: &mut Option<usize>,
        compressed: bool
    ) -> Result<(), Error>; fn render(&self, buffer: &mut dyn Write) -> Result<(), Error> { ... }
fn render_compressed(&self, buffer: &mut dyn Write) -> Result<(), Error> { ... }
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

Implementations on Foreign Types

Implementors