pub trait WebTemplateExt: Template {
// Required methods
fn as_web_template(&self) -> WebTemplate<&Self>;
fn into_web_template(self) -> WebTemplate<Self>
where Self: Sized;
}Expand description
Extension trait to let any Template be usable as a WebTemplate.
Required Methods§
Sourcefn as_web_template(&self) -> WebTemplate<&Self>
fn as_web_template(&self) -> WebTemplate<&Self>
Treat a reference to a Template as WebTemplate.
In most cases .into_web_template() will work better.
Sourcefn into_web_template(self) -> WebTemplate<Self>where
Self: Sized,
fn into_web_template(self) -> WebTemplate<Self>where
Self: Sized,
Treat a Template as WebTemplate.
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.