pub enum TransitionOutcome<T> {
None,
Pushed,
Revealed(Vec<T>),
SwappedIn(Vec<T>, usize),
}Expand description
What happened to the state stack after applying a transition.
Variants§
None
Nothing happened!
Pushed
A state was newly pushed to the stack.
Revealed(Vec<T>)
The top state on the stack was revealed after things were removed from on top of it.
The Vec has all the states that used to be on top, with the last element being the previous
top of the stack.
SwappedIn(Vec<T>, usize)
Things were removed from the stack, and then the new state got pushed on top along with N things below it.
Trait Implementations§
Source§impl<T: Clone> Clone for TransitionOutcome<T>
impl<T: Clone> Clone for TransitionOutcome<T>
Source§fn clone(&self) -> TransitionOutcome<T>
fn clone(&self) -> TransitionOutcome<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for TransitionOutcome<T>
impl<T: Debug> Debug for TransitionOutcome<T>
Source§impl<T: PartialEq> PartialEq for TransitionOutcome<T>
impl<T: PartialEq> PartialEq for TransitionOutcome<T>
impl<T: Eq> Eq for TransitionOutcome<T>
impl<T> StructuralPartialEq for TransitionOutcome<T>
Auto Trait Implementations§
impl<T> Freeze for TransitionOutcome<T>
impl<T> RefUnwindSafe for TransitionOutcome<T>where
T: RefUnwindSafe,
impl<T> Send for TransitionOutcome<T>where
T: Send,
impl<T> Sync for TransitionOutcome<T>where
T: Sync,
impl<T> Unpin for TransitionOutcome<T>where
T: Unpin,
impl<T> UnwindSafe for TransitionOutcome<T>where
T: UnwindSafe,
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