pub fn stop(&mut self, state_data: &mut S) {
        while let Some(mut state) = self.state_stack.pop() {
            state.on_stop(state_data);
        }
    }
/// Removes all currently running states from the stack.
Removes all currently running states from the stack.
Removes all currently running states from the stack .
pub fn stop(&mut self, state_data: &mut S) {
        while let Some(mut state) = self.state_stack.pop() {
            state.on_stop(state_data);
        }
    }
pub fn stop ( & mut self , state_data : & mut S ) { while let Some ( mut state ) = self . state_stack . pop ( ) { state . on_stop ( state_data ) ; } }
Removes all currently running states from the stack.
Removes all currently running states from the stack .
&mut self
state_data
&mut S
&mut self
state_data
&mut S