Enum geng_state::Transition
source · pub enum Transition {
Pop,
Switch(Box<dyn State>),
Push(Box<dyn State>),
}
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more