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§
Sourcefn prepend_html_start_tag(self) -> Result<Self, InputStreamError>
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".