cgp_type/impls/use_type.rs
1use core::marker::PhantomData;
2
3use cgp_component::WithProvider;
4
5use crate::traits::ProvideType;
6
7pub struct UseType<Type>(pub PhantomData<Type>);
8
9pub type WithType<Type> = WithProvider<UseType<Type>>;
10
11impl<Context, Tag, Type> ProvideType<Context, Tag> for UseType<Type> {
12 type Type = Type;
13}