Add clear_schedule (#3941)
# Objective Adds `clear_schedule` method to `State`. Closes #3932
This commit is contained in:
parent
baae97d002
commit
cf46baa172
@ -392,6 +392,11 @@ where
|
|||||||
pub fn inactives(&self) -> &[T] {
|
pub fn inactives(&self) -> &[T] {
|
||||||
self.stack.split_last().map(|(_, rest)| rest).unwrap()
|
self.stack.split_last().map(|(_, rest)| rest).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Clears the scheduled state operation.
|
||||||
|
pub fn clear_schedule(&mut self) {
|
||||||
|
self.scheduled = None;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Error)]
|
#[derive(Debug, Error)]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user