pub struct Catalog(/* private fields */);Implementations§
Source§impl Catalog
impl Catalog
pub fn builder() -> CatalogBuilder
pub fn builder_chained(&self) -> CatalogBuilder
pub fn builders<'a>(&'a self) -> Box<dyn Iterator<Item = &'a dyn Builder> + 'a>
pub fn builders_for<'a, Iface>(
&'a self,
) -> Box<dyn Iterator<Item = TypecastBuilder<'a, Iface>> + 'a>where
Iface: 'static + ?Sized,
pub fn builders_for_with_meta<'a, Iface, Meta>(
&'a self,
pred: impl Fn(&Meta) -> bool + Copy + 'a,
) -> Box<dyn Iterator<Item = TypecastBuilder<'a, Iface>> + 'a>where
Iface: 'static + ?Sized,
Meta: 'static,
pub fn get<Spec>(&self) -> Result<Spec::ReturnType, InjectionError>where
Spec: DependencySpec + 'static,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Catalog
impl !RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl !UnwindSafe for Catalog
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