pub trait Html {
// Required method
fn write_html(self, env: &mut impl HtmlEnv) -> Result;
// Provided method
fn is_unit(&self) -> bool { ... }
}
Expand description
Represents a content that can be written to a Write
as HTML.
Required Methods§
Sourcefn write_html(self, env: &mut impl HtmlEnv) -> Result
fn write_html(self, env: &mut impl HtmlEnv) -> Result
Provided Methods§
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.