Trait svgbob::Render [−]
pub trait Render {
fn render_with_indent(
&self,
buffer: &mut dyn Write,
indent: 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 { ... }
fn render_to_string_pretty(&self) -> String { ... }
}
Expand description
render node, elements to a writable buffer
Required methods
Provided methods
fn render_compressed(&self, buffer: &mut dyn Write) -> Result<(), Error>
fn render_compressed(&self, buffer: &mut dyn Write) -> Result<(), Error>
no new_lines, no indents
fn render_to_string(&self) -> String
fn render_to_string(&self) -> String
render compressed html to string
fn render_to_string_pretty(&self) -> String
fn render_to_string_pretty(&self) -> String
render to string with nice indention