pub struct Reg<T, Rest>(/* private fields */);Expand description
Marker for a registered type in the builder’s registry.
Trait Implementations§
impl<T: Injectable, Rest> HasType<T> for Reg<T, Rest>
Auto Trait Implementations§
impl<T, Rest> Freeze for Reg<T, Rest>
impl<T, Rest> RefUnwindSafe for Reg<T, Rest>where
T: RefUnwindSafe,
Rest: RefUnwindSafe,
impl<T, Rest> Send for Reg<T, Rest>
impl<T, Rest> Sync for Reg<T, Rest>
impl<T, Rest> Unpin for Reg<T, Rest>
impl<T, Rest> UnsafeUnpin for Reg<T, Rest>
impl<T, Rest> UnwindSafe for Reg<T, Rest>where
T: UnwindSafe,
Rest: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<R, D> DepsPresent<D> for R
impl<T, R> Has<T> for Rwhere
T: Injectable,
R: HasType<T>,
impl<T, R> HasService<T> for Rwhere
T: Injectable,
R: HasType<T>,
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging