// Define the name or return the existing binding if there is a collision.
Define the name or return the existing binding if there is a collision.
Define the name or return the existing binding if there is a collision .
pub fn try_define_child(&self, name: Name, ns: Namespace, binding: NameBinding<'a>)
                            -> Result<(), &'a NameBinding<'a>> {
        self.update_resolution(name, ns, |resolution| {
            resolution.try_define(self.arenas.alloc_name_binding(binding))
        })
    }
pub fn try_define_child ( & self , name : Name , ns : Namespace , binding : NameBinding < ' a > ) -> Result < ( ) , & ' a NameBinding < ' a > > { self . update_resolution ( name , ns , | resolution | { resolution . try_define ( self . arenas . alloc_name_binding ( binding ) ) } ) }
Define the name or return the existing binding if there is a collision.
Define the name or return the existing binding if there is a collision .
&self
name
Name
ns
Namespace
binding
NameBinding<'a>