[][src]Trait sauron::Render

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

render the node to a writable buffer

pub fn render_compressed(&self, buffer: &mut dyn Write) -> Result<(), Error>[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 Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>[src]

impl<MSG> Render for Attribute<&'static str, &'static str, AttributeValue, Event, MSG>[src]

impl<MSG> Render for Element<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>[src]

Loading content...