pub fn pop (&mut self, message : Option<String>) {
        info!("Popping state");
        match message {
            Some(msg) => {
                debug!("{}", msg);
            },
            _ => {},
        }
        self.states[0].on_exit();
        self.states.pop_front();
        if self.states.len() >= 1 {
            self.states[0].on_enter();
        }
    }
/// Pops the state from the top of the stack. If no states are left on the stack,
/// it exits the program.
Pops the state from the top of the stack. If no states are left on the stack,
it exits the program.
Pops the state from the top of the stack . If no states are left on the stack it exits the program .
pub fn pop (&mut self, message : Option<String>) {
        info!("Popping state");
        match message {
            Some(msg) => {
                debug!("{}", msg);
            },
            _ => {},
        }
        self.states[0].on_exit();
        self.states.pop_front();
        if self.states.len() >= 1 {
            self.states[0].on_enter();
        }
    }
pub fn pop ( & mut self , message : Option < String > ) { info ! ( " " ) ; match message { Some ( msg ) => { debug ! ( " " msg ) ; } , _ => { } , } self . states [ 0 ] . on_exit ( ) ; self . states . pop_front ( ) ; if self . states . len ( ) >= 1 { self . states [ 0 ] . on_enter ( ) ; } }
Pops the state from the top of the stack.
Pops the state from the top of the stack .
&mut self
message
Option<String>
&mut self
message
Option<String>