pub struct BaseRecognitionError {
pub message: String,
pub offending_token: OwningToken,
pub offending_state: i32,
/* private fields */
}Expand description
Common part of ANTLR parser errors
Fields§
§message: String§offending_token: OwningToken§offending_state: i32Implementations§
Source§impl BaseRecognitionError
impl BaseRecognitionError
Sourcepub fn get_expected_tokens<'input, 'arena, TF, P>(
&self,
recognizer: &P,
) -> IntervalSetwhere
TF: TokenFactory<'input, 'arena> + 'arena,
P: Parser<'input, 'arena, TF>,
'input: 'arena,
pub fn get_expected_tokens<'input, 'arena, TF, P>(
&self,
recognizer: &P,
) -> IntervalSetwhere
TF: TokenFactory<'input, 'arena> + 'arena,
P: Parser<'input, 'arena, TF>,
'input: 'arena,
Returns tokens that were expected by parser in error place
Trait Implementations§
Source§impl Clone for BaseRecognitionError
impl Clone for BaseRecognitionError
Source§fn clone(&self) -> BaseRecognitionError
fn clone(&self) -> BaseRecognitionError
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 moreAuto Trait Implementations§
impl Freeze for BaseRecognitionError
impl RefUnwindSafe for BaseRecognitionError
impl Send for BaseRecognitionError
impl Sync for BaseRecognitionError
impl Unpin for BaseRecognitionError
impl UnwindSafe for BaseRecognitionError
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