[−]Trait svgbob::Render
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>
&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
pub fn render(&self, buffer: &mut dyn Write) -> Result<(), Error>
render the node to a writable buffer
pub fn render_compressed(&self, buffer: &mut dyn Write) -> Result<(), Error>
no new_lines, no indents
pub fn render_to_string(&self) -> String
render compressed html to string
Implementations on Foreign Types
impl<MSG> Render for Attribute<&'static str, &'static str, AttributeValue, Event, MSG>
pub 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>
impl<MSG> Render for Element<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
pub 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>
impl<MSG> Render for Node<&'static str, &'static str, &'static str, AttributeValue, Event, MSG>
pub 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>