pub fn new_module(&mut self, name: &str) -> &mut Module {
        self.push_module(Module::new(name));

        match *self.items.last_mut().unwrap() {
            Item::Module(ref mut v) => v,
            _ => unreachable!(),
        }
    }
/// Push a new module definition, returning a mutable reference to it.
///
/// # Panics
///
/// Since a module's name must uniquely identify it within the scope in
/// which it is defined, pushing a module whose name is already defined
/// in this scope will cause this function to panic.
///
/// In many cases, the [`get_or_new_module`] function is preferrable, as it
/// will return the existing definition instead.
///
/// [`get_or_new_module`]: #method.get_or_new_module
Push a new module definition, returning a mutable reference to it.
Push a new module definition returning a mutable reference to it .
pub fn new_module(&mut self, name: &str) -> &mut Module {
        self.push_module(Module::new(name));
        match *self.items.last_mut().unwrap() {
            Item::Module(ref mut v) => v,
            _ => unreachable!(),
        }
    }
pub fn new_module ( & mut self , name : & str ) -> & mut Module { self . push_module ( Module :: new ( name ) ) ; match * self . items . last_mut ( ) . unwrap ( ) { Item :: Module ( ref mut v ) => v , _ => unreachable ! ( ) , } }
Push a new module definition, returning a mutable reference to it.
Push a new module definition returning a mutable reference to it .
&mut self
name
&str
&mut self
name
&str
panics
Since a module's name must uniquely identify it within the scope in
which it is defined, pushing a module whose name is already defined
in this scope will cause this function to panic.

In many cases, the [`get_or_new_module`] function is preferrable, as it
will return the existing definition instead.

[`get_or_new_module`]: #method.get_or_new_module
Since a module ' s name must uniquely identify it within the scope in which it is defined pushing a module whose name is already defined in this scope will cause this function to panic . In many cases the [ ` get_or_new_module ` ] function is preferrable as it will return the existing definition instead . [ ` get_or_new_module ` ] : #method . get_or_new_module