pub fn instance(&mut self, instance_name: Option<&str>, instance: Instance) -> InstanceIndex {
        let index = self.instances.push(instance);
        if let Some(instance_name) = instance_name {
            self.names.insert(instance_name.into(), index);
        }
        index
    }
/// Install a new `Instance` in this `Namespace`, optionally with the
/// given name, and return its index.
Install a new `Instance` in this `Namespace`, optionally with the
given name, and return its index.
Install a new ` Instance ` in this ` Namespace ` optionally with the given name and return its index .
pub fn instance(&mut self, instance_name: Option<&str>, instance: Instance) -> InstanceIndex {
        let index = self.instances.push(instance);
        if let Some(instance_name) = instance_name {
            self.names.insert(instance_name.into(), index);
        }
        index
    }
pub fn instance ( & mut self , instance_name : Option < & str > , instance : Instance ) -> InstanceIndex { let index = self . instances . push ( instance ) ; if let Some ( instance_name ) = instance_name { self . names . insert ( instance_name . into ( ) , index ) ; } index }
Install a new `Instance` in this `Namespace`, optionally with the
given name, and return its index.
Install a new ` Instance ` in this ` Namespace ` optionally with the given name and return its index .
&mut self
instance_name
Option<&str>
instance
Instance