[−][src]Trait sauron::Render
render node, elements to a writable buffer
Required methods
fn render_with_indent(
&self,
buffer: &mut dyn Write,
indent: usize,
node_idx: &mut Option<usize>,
compressed: bool
) -> Result<(), Error>
&self,
buffer: &mut dyn Write,
indent: usize,
node_idx: &mut Option<usize>,
compressed: bool
) -> Result<(), Error>
render instance to a writable buffer with indention node_idx is for debugging purposes
Provided methods
fn render(&self, buffer: &mut dyn Write) -> Result<(), Error>
render the node to a writable buffer
fn render_compressed(&self, buffer: &mut dyn Write) -> Result<(), Error>
no new_lines, no indents
fn render_to_string(&self) -> String
render compressed html to string
Implementors
impl<MSG> Render for Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
[src]
pub fn render_with_indent(
&self,
buffer: &mut dyn Write,
indent: usize,
node_idx: &mut Option<usize>,
compressed: bool
) -> Result<(), Error>
[src]
&self,
buffer: &mut dyn Write,
indent: usize,
node_idx: &mut Option<usize>,
compressed: bool
) -> Result<(), Error>
impl<MSG> Render for Attribute<&'static str, &'static str, AttributeValue, Event, MSG>
[src]
pub fn render_with_indent(
&self,
buffer: &mut dyn Write,
_indent: usize,
_node_idx: &mut Option<usize>,
_compressed: bool
) -> Result<(), Error>
[src]
&self,
buffer: &mut dyn Write,
_indent: usize,
_node_idx: &mut Option<usize>,
_compressed: bool
) -> Result<(), Error>