pub fn attach<P, C, F>(&mut self, constructor: F)
        where P: 'static + Any, // Parent
              C: 'static + Any, // Child
              F: for<'r> Fn(&Deps, &mut P) -> Result<C> + 'static + Send + Sync
    {
        if TypeId::of::<C>() == self.empty_type {
            self.register_isolated_constructor::<P>(into_isolated_constructor_with_ignored_child_deps(constructor));
        } else {
            self.register_isolated_constructor::<P>(into_isolated_constructor_with_child_deps(constructor));
        }
    }
/// Single dependency on a parent.
Single dependency on a parent.
Single dependency on a parent .
pub fn attach<P, C, F>(&mut self, constructor: F)
        where P: 'static + Any, // Parent
              C: 'static + Any, // Child
              F: for<'r> Fn(&Deps, &mut P) -> Result<C> + 'static + Send + Sync
    {
        if TypeId::of::<C>() == self.empty_type {
            self.register_isolated_constructor::<P>(into_isolated_constructor_with_ignored_child_deps(constructor));
        } else {
            self.register_isolated_constructor::<P>(into_isolated_constructor_with_child_deps(constructor));
        }
    }
pub fn attach < P , C , F > ( & mut self , constructor : F ) where P : ' static + Any , // Parent C : ' static + Any , // Child F : for < ' r > Fn ( & Deps , & mut P ) -> Result < C > + ' static + Send + Sync { if TypeId :: of :: < C > ( ) == self . empty_type { self . register_isolated_constructor :: < P > ( into_isolated_constructor_with_ignored_child_deps ( constructor ) ) ; } else { self . register_isolated_constructor :: < P > ( into_isolated_constructor_with_child_deps ( constructor ) ) ; } }
Single dependency on a parent.
Single dependency on a parent .
&mut self
constructor
F
&mut self
constructor
F