TypeFunction

Trait TypeFunction 

Source
pub trait TypeFunction<Arg: ?Sized> {
    type Result: ?Sized;
}
Expand description

A trait for type level functions, mapping type arguments to type results.

Note that Self is used only as a marker. See also substitute, which implements coercing of results.

Required Associated Types§

Source

type Result: ?Sized

The type that Arg is mapped to by the implementor.

Implementors§

Source§

impl<'a, A: ?Sized + 'a> TypeFunction<A> for MutRefF<'a>

Source§

impl<'a, A: ?Sized + 'a> TypeFunction<A> for RefF<'a>

Source§

impl<A, const N: usize> TypeFunction<A> for SliceF<N>

Source§

impl<A: ?Sized> TypeFunction<A> for BoxF

Source§

impl<A: ?Sized> TypeFunction<A> for IdF

Source§

impl<F, G, Arg: ?Sized> TypeFunction<Arg> for ComposeF<F, G>
where G: TypeFunction<Arg> + ?Sized, F: TypeFunction<G::Result> + ?Sized,

Source§

impl<T: ?Sized, Arg: ?Sized> TypeFunction<Arg> for LoefIdF<T>

Source§

type Result = TypeEq<T, Arg>

Source§

impl<T: ?Sized, Arg: ?Sized> TypeFunction<Arg> for LoefIdFlippedF<T>

Source§

type Result = TypeEq<Arg, T>