pub fn new_trait(&mut self, name: &str) -> &mut Trait {
        self.push_trait(Trait::new(name));

        match *self.items.last_mut().unwrap() {
            Item::Trait(ref mut v) => v,
            _ => unreachable!(),
        }
    }
/// Push a new trait definition, returning a mutable reference to it.
Push a new trait definition, returning a mutable reference to it.
Push a new trait definition returning a mutable reference to it .
pub fn new_trait(&mut self, name: &str) -> &mut Trait {
        self.push_trait(Trait::new(name));
        match *self.items.last_mut().unwrap() {
            Item::Trait(ref mut v) => v,
            _ => unreachable!(),
        }
    }
pub fn new_trait ( & mut self , name : & str ) -> & mut Trait { self . push_trait ( Trait :: new ( name ) ) ; match * self . items . last_mut ( ) . unwrap ( ) { Item :: Trait ( ref mut v ) => v , _ => unreachable ! ( ) , } }
Push a new trait definition, returning a mutable reference to it.
Push a new trait definition returning a mutable reference to it .
&mut self
name
&str
&mut self
name
&str