Trait IntoTemplate

Source
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§

Source

type Template

The type to convert Self into

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<'a> IntoTemplate<'a> for &'a TraitBound

Source§

type Template = Trait<'a>

Source§

fn into_template<T: TypeEq<This = Self::Template>>(self) -> Self::Template

Source§

impl<'a> IntoTemplate<'a> for TraitBound

Source§

type Template = Trait<'a>

Source§

fn into_template<T: TypeEq<This = Self::Template>>(self) -> Self::Template

Implementors§