Trait HtmlString

Source
pub trait HtmlString: Sized {
    // Required method
    fn prepend_html_start_tag(self) -> Result<Self, InputStreamError>;
}
Expand description

This trait deals with tagged HTML String data.

Required Methods§

Source

fn prepend_html_start_tag(self) -> Result<Self, InputStreamError>

If the input does not start with <!DOCTYPE html (or lowercase variants), then insert <!DOCTYPE html>. Returns InputStreamError::NonHtmlDoctype if there is another Doctype already.

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.

Implementations on Foreign Types§

Source§

impl HtmlString for String

Implementors§