pub struct AllOf<Iface>where
Iface: 'static + ?Sized,{ /* private fields */ }Expand description
Builds all instances that implement a specific interface, returning a
Vec.
Trait Implementations§
Source§impl<Iface> DependencySpec for AllOf<Iface>where
Iface: 'static + ?Sized,
impl<Iface> DependencySpec for AllOf<Iface>where
Iface: 'static + ?Sized,
type IfaceType = Iface
type ReturnType = Vec<Arc<Iface>>
Source§fn get(
cat: &Catalog,
ctx: &InjectionContext<'_>,
) -> Result<Self::ReturnType, InjectionError>
fn get( cat: &Catalog, ctx: &InjectionContext<'_>, ) -> Result<Self::ReturnType, InjectionError>
Resolve and create instances
Auto Trait Implementations§
impl<Iface> Freeze for AllOf<Iface>where
Iface: ?Sized,
impl<Iface> RefUnwindSafe for AllOf<Iface>where
Iface: RefUnwindSafe + ?Sized,
impl<Iface> Send for AllOf<Iface>
impl<Iface> Sync for AllOf<Iface>
impl<Iface> Unpin for AllOf<Iface>
impl<Iface> UnwindSafe for AllOf<Iface>where
Iface: UnwindSafe + ?Sized,
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