Skip to main content

TypeProvider

Trait TypeProvider 

Source
pub trait TypeProvider<__Context__, Tag>: IsProviderFor<TypeProviderComponent, __Context__, Tag> {
    type Type;
}

Required Associated Types§

Implementations on Foreign Types§

Source§

impl<__Context__, Tag> TypeProvider<__Context__, Tag> for UseContext
where __Context__: HasType<Tag>,

Source§

type Type = <__Context__ as HasType<Tag>>::Type

Source§

impl<__Context__, Tag, __Components__, __Delegate__> TypeProvider<__Context__, Tag> for UseDelegate<__Components__>
where __Components__: DelegateComponent<Tag, Delegate = __Delegate__>, __Delegate__: TypeProvider<__Context__, Tag>,

Source§

type Type = <__Delegate__ as TypeProvider<__Context__, Tag>>::Type

Implementors§

Source§

impl<Context, Tag, Components, Type> TypeProvider<Context, Tag> for UseDelegatedType<Components>
where Components: DelegateComponent<Tag, Delegate = Type>,

Source§

type Type = Type

Source§

impl<Context, Tag, Type> TypeProvider<Context, Tag> for UseType<Type>

Source§

type Type = Type

Source§

impl<__Component__, __Context__, Tag> TypeProvider<__Context__, Tag> for __Component__
where __Component__: DelegateComponent<TypeProviderComponent> + IsProviderFor<TypeProviderComponent, __Context__, Tag>, __Component__::Delegate: TypeProvider<__Context__, Tag>,

Source§

type Type = <<__Component__ as DelegateComponent<TypeProviderComponent>>::Delegate as TypeProvider<__Context__, Tag>>::Type