#[non_exhaustive]pub struct StackState<'a> {
pub symbols: VecDeque<&'a str>,
}Expand description
The symbol stack a path carries through the graph, top first.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbols: VecDeque<&'a str>Symbols still to resolve.
Implementations§
Source§impl<'a> StackState<'a>
impl<'a> StackState<'a>
Sourcepub fn apply(
&mut self,
graph: &'a StackGraph,
id: NodeId,
) -> Result<(), TransitionError>
pub fn apply( &mut self, graph: &'a StackGraph, id: NodeId, ) -> Result<(), TransitionError>
Applies node id of graph.
§Errors
Returns the TransitionError that blocks the node, leaving the state unchanged.
Trait Implementations§
Source§impl<'a> Clone for StackState<'a>
impl<'a> Clone for StackState<'a>
Source§impl<'a> Debug for StackState<'a>
impl<'a> Debug for StackState<'a>
Source§impl<'a> Default for StackState<'a>
impl<'a> Default for StackState<'a>
impl<'a> Eq for StackState<'a>
Source§impl<'a> PartialEq for StackState<'a>
impl<'a> PartialEq for StackState<'a>
impl<'a> StructuralPartialEq for StackState<'a>
Auto Trait Implementations§
impl<'a> Forget for StackState<'a>
impl<'a> Freeze for StackState<'a>
impl<'a> RefUnwindSafe for StackState<'a>
impl<'a> Send for StackState<'a>
impl<'a> Sync for StackState<'a>
impl<'a> Unpin for StackState<'a>
impl<'a> UnsafeUnpin for StackState<'a>
impl<'a> UnwindSafe for StackState<'a>
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