pub struct ParserDfaStateView<'a> { /* private fields */ }Expand description
Borrowing diagnostic view over one parser-DFA state.
Implementations§
Source§impl<'a> ParserDfaStateView<'a>
impl<'a> ParserDfaStateView<'a>
pub const fn id(self) -> DfaStateId
pub fn is_accept_state(self) -> bool
pub fn prediction(self) -> Option<usize>
pub fn requires_full_context(self) -> bool
pub fn has_semantic_context(self) -> bool
pub fn edge(self, symbol: i32) -> Option<DfaStateId>
pub fn transitions(self) -> impl Iterator<Item = DfaTransition> + 'a
Trait Implementations§
Source§impl<'a> Clone for ParserDfaStateView<'a>
impl<'a> Clone for ParserDfaStateView<'a>
Source§fn clone(&self) -> ParserDfaStateView<'a>
fn clone(&self) -> ParserDfaStateView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ParserDfaStateView<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParserDfaStateView<'a>
impl<'a> RefUnwindSafe for ParserDfaStateView<'a>
impl<'a> Send for ParserDfaStateView<'a>
impl<'a> Sync for ParserDfaStateView<'a>
impl<'a> Unpin for ParserDfaStateView<'a>
impl<'a> UnsafeUnpin for ParserDfaStateView<'a>
impl<'a> UnwindSafe for ParserDfaStateView<'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