pub trait AsHtml {
type Html: Html;
type HtmlText: Html;
// Required methods
fn as_html(self) -> Self::Html;
fn as_html_text(self) -> Self::HtmlText;
}Expand description
Something that can be converted into HTML.
TODO better doc
Required Associated Types§
Required Methods§
Sourcefn as_html_text(self) -> Self::HtmlText
fn as_html_text(self) -> Self::HtmlText
Converts self into HTML text.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".