Trait HtmlHandler

Source
pub trait HtmlHandler<E: From<Error>>: Default {
    // Required methods
    fn start<W: Write>(&mut self, w: W, element: &Element<'_>) -> Result<(), E>;
    fn end<W: Write>(&mut self, w: W, element: &Element<'_>) -> Result<(), E>;
}

Required Methods§

Source

fn start<W: Write>(&mut self, w: W, element: &Element<'_>) -> Result<(), E>

Source

fn end<W: Write>(&mut self, w: W, element: &Element<'_>) -> Result<(), E>

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.

Implementors§