pub fn create<P: Any>(&self, obj: P) -> Result<Scope<P>> {
        let (parent, deps) =
            try!(self.create_deps_for_any_parent(TypeId::of::<P>(), Box::new(obj), to_shared::<P>));
        Ok(Scope::from_any_instance(parent, deps))
    }
/// Create dependencies for specified `obj` and return a wrapper `Scope` object.
///
/// The wrapper `Scope` keeps ownership of all children together with parent object.
Create dependencies for specified `obj` and return a wrapper `Scope` object.
The wrapper `Scope` keeps ownership of all children together with parent object.
Create dependencies for specified ` obj ` and return a wrapper ` Scope ` object . The wrapper ` Scope ` keeps ownership of all children together with parent object .
pub fn create<P: Any>(&self, obj: P) -> Result<Scope<P>> {
        let (parent, deps) =
            try!(self.create_deps_for_any_parent(TypeId::of::<P>(), Box::new(obj), to_shared::<P>));
        Ok(Scope::from_any_instance(parent, deps))
    }
pub fn create < P : Any > ( & self , obj : P ) -> Result < Scope < P > > { let ( parent , deps ) = try ! ( self create_deps_for_any_parent ( TypeId of P ( ) Box new ( obj ) to_shared P ) ) ; Ok ( Scope :: from_any_instance ( parent , deps ) ) }
Create dependencies for specified `obj` and return a wrapper `Scope` object.
Create dependencies for specified ` obj ` and return a wrapper ` Scope ` object .
&self
obj
P
&self
obj
P