pub trait IntoTemplate<'a> {
type Template;
// Required method
fn into_template<T: TypeEq<This = Self::Template>>(self) -> Self::Template;
}
Expand description
Convert Self
into a template, usually some Generatable
Required Associated Types§
Required Methods§
Sourcefn into_template<T: TypeEq<This = Self::Template>>(self) -> Self::Template
fn into_template<T: TypeEq<This = Self::Template>>(self) -> Self::Template
Convert Self
into Self::Template
. The type parameter T is for easy type annotation in
case of ambiguity into which template it should be converted into
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.