Enum geng::Transition
source · [−]Expand description
Represents a transition between states.
Variants
Pop
Pops (removes) the current state from the state stack.
Switch(Box<dyn State>)
Replaces the current state with another state.
Push(Box<dyn State>)
Pushes a new state on the state stack.
Auto Trait Implementations
impl !RefUnwindSafe for Transition
impl !Send for Transition
impl !Sync for Transition
impl Unpin for Transition
impl !UnwindSafe for Transition
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more