pub fn overwrite_pop(&mut self) -> Result<(), StateError> {
        if self.stack.len() == 1 {
            return Err(StateError::StackEmpty);
        }
        self.scheduled = Some(ScheduledOperation::Pop);
        Ok(())
    }
/// Same as [Self::pop], but if there is already a next state, it will be overwritten
/// instead of failing
Same as [Self::pop], but if there is already a next state, it will be overwritten
instead of failing
Same as [ Self :: pop ] but if there is already a next state it will be overwritten instead of failing
pub fn overwrite_pop(&mut self) -> Result<(), StateError> {
        if self.stack.len() == 1 {
            return Err(StateError::StackEmpty);
        }
        self.scheduled = Some(ScheduledOperation::Pop);
        Ok(())
    }
pub fn overwrite_pop ( & mut self ) -> Result < ( ) , StateError > { if self . stack . len ( ) == 1 { return Err ( StateError :: StackEmpty ) ; } self . scheduled = Some ( ScheduledOperation :: Pop ) ; Ok ( ( ) ) }
Same as [Self::pop], but if there is already a next state, it will be overwritten
instead of failing
Same as [ Self :: pop ] but if there is already a next state it will be overwritten instead of failing
&mut self
&mut self