pub struct LexerPredicate { /* private fields */ }Expand description
Grammar-specific lexer predicate reached while exploring an ATN path.
Implementations§
Source§impl LexerPredicate
impl LexerPredicate
Sourcepub const fn new(rule_index: usize, pred_index: usize, position: usize) -> Self
pub const fn new(rule_index: usize, pred_index: usize, position: usize) -> Self
Creates a lexer predicate event from serialized ATN metadata.
Sourcepub const fn rule_index(self) -> usize
pub const fn rule_index(self) -> usize
Lexer rule index that owns the predicate transition.
Sourcepub const fn pred_index(self) -> usize
pub const fn pred_index(self) -> usize
Per-rule predicate index assigned by ANTLR serialization.
Trait Implementations§
Source§impl Clone for LexerPredicate
impl Clone for LexerPredicate
Source§fn clone(&self) -> LexerPredicate
fn clone(&self) -> LexerPredicate
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 moreSource§impl Debug for LexerPredicate
impl Debug for LexerPredicate
Source§impl PartialEq for LexerPredicate
impl PartialEq for LexerPredicate
Source§fn eq(&self, other: &LexerPredicate) -> bool
fn eq(&self, other: &LexerPredicate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LexerPredicate
impl Eq for LexerPredicate
impl StructuralPartialEq for LexerPredicate
Auto Trait Implementations§
impl Freeze for LexerPredicate
impl RefUnwindSafe for LexerPredicate
impl Send for LexerPredicate
impl Sync for LexerPredicate
impl Unpin for LexerPredicate
impl UnsafeUnpin for LexerPredicate
impl UnwindSafe for LexerPredicate
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