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 ReturnType = Vec<Arc<Iface>>
fn get(cat: &Catalog) -> Result<Self::ReturnType, InjectionError>
fn check(_cat: &Catalog) -> Result<(), InjectionError>
Auto Trait Implementations§
impl<Iface: ?Sized> RefUnwindSafe for AllOf<Iface>where Iface: RefUnwindSafe,
impl<Iface: ?Sized> Send for AllOf<Iface>where Iface: Send,
impl<Iface: ?Sized> Sync for AllOf<Iface>where Iface: Sync,
impl<Iface: ?Sized> Unpin for AllOf<Iface>where Iface: Unpin,
impl<Iface: ?Sized> UnwindSafe for AllOf<Iface>where Iface: 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