pub trait Render {
// Required method
fn render_to(&self, out: &mut HtmlBuf);
// Provided method
fn render_to_string(&self) -> String { ... }
}Expand description
Composable UI rendering trait. Dynamic text implementations ALWAYS escape HTML.
Required Methods§
Provided Methods§
Sourcefn render_to_string(&self) -> String
fn render_to_string(&self) -> String
Convenience helper to render a standalone fragment to String.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".