[][src]Trait sauron_core::Render

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

render node, elements to a writable buffer

Required methods

pub fn render_with_indent(
    &self,
    buffer: &mut dyn Write,
    indent: usize,
    node_idx: &mut Option<usize>,
    compressed: bool
) -> Result
[src]

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

Loading content...

Provided methods

pub fn render(&self, buffer: &mut dyn Write) -> Result[src]

render the node to a writable buffer

pub fn render_compressed(&self, buffer: &mut dyn Write) -> Result[src]

no new_lines, no indents

pub fn render_to_string(&self) -> String[src]

render compressed html to string

Loading content...

Implementors

impl<MSG> Render for Attribute<MSG>[src]

impl<MSG> Render for Element<MSG>[src]

impl<MSG> Render for Node<MSG>[src]

Loading content...