pub trait InsertIntoTemplate<'a, T, A>where
T: Generatable<'a, A> + 'a,
A: 'a + TidAble<'a>,{
type Output: RawAssertable<'a>;
// Required method
fn test<B>(self, ty: impl Into<MaybeBorrowed<'a, A>>) -> Self::Output
where B: TypeEq<This = A>;
}
Required Associated Types§
Sourcetype Output: RawAssertable<'a>
type Output: RawAssertable<'a>
The type of the Assert generated by the Template
Self
Required Methods§
Sourcefn test<B>(self, ty: impl Into<MaybeBorrowed<'a, A>>) -> Self::Outputwhere
B: TypeEq<This = A>,
fn test<B>(self, ty: impl Into<MaybeBorrowed<'a, A>>) -> Self::Outputwhere
B: TypeEq<This = A>,
Test some type against the template Self
and turn
it into Self::Output
. So that the type may
either be borrowed or owned, any type that
can be turned into MaybeBorrowed<T::Assert>
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.