#[non_exhaustive]pub enum TransitionError {
EmptySymbolStack,
IncorrectPoppedSymbol,
UnknownNode,
}Expand description
Why a node cannot be applied to a StackState.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptySymbolStack
A pop found no symbol to consume.
IncorrectPoppedSymbol
A pop found a different symbol on top.
UnknownNode
The node is not in the graph.
Trait Implementations§
Source§impl Clone for TransitionError
impl Clone for TransitionError
impl Copy for TransitionError
Source§impl Debug for TransitionError
impl Debug for TransitionError
impl Eq for TransitionError
Source§impl From<TransitionError> for PathError
impl From<TransitionError> for PathError
Source§fn from(error: TransitionError) -> Self
fn from(error: TransitionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TransitionError
impl PartialEq for TransitionError
impl StructuralPartialEq for TransitionError
Auto Trait Implementations§
impl Forget for TransitionError
impl Freeze for TransitionError
impl RefUnwindSafe for TransitionError
impl Send for TransitionError
impl Sync for TransitionError
impl Unpin for TransitionError
impl UnsafeUnpin for TransitionError
impl UnwindSafe for TransitionError
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