pub trait RenderElement {
// Required methods
fn write_opening_tag<W: Write>(&self, writer: &mut W) -> Result;
fn write_closing_tag<W: Write>(&self, writer: &mut W) -> Result;
}
Expand description
Render an element to a writer.
Required Methods§
Sourcefn write_opening_tag<W: Write>(&self, writer: &mut W) -> Result
fn write_opening_tag<W: Write>(&self, writer: &mut W) -> Result
Write the opening tag to a writer.
Sourcefn write_closing_tag<W: Write>(&self, writer: &mut W) -> Result
fn write_closing_tag<W: Write>(&self, writer: &mut W) -> Result
Write the closing tag to a writer, if one is available.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.