pub enum AntlrError {
MismatchedInput {
expected: String,
found: String,
},
NoViableAlternative {
input: String,
},
LexerError {
line: usize,
column: usize,
message: String,
},
ParserError {
line: usize,
column: usize,
message: String,
},
Unsupported(String),
}Variants§
Trait Implementations§
Source§impl Clone for AntlrError
impl Clone for AntlrError
Source§fn clone(&self) -> AntlrError
fn clone(&self) -> AntlrError
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 AntlrError
impl Debug for AntlrError
Source§impl Display for AntlrError
impl Display for AntlrError
Source§impl Error for AntlrError
impl Error for AntlrError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for AntlrError
impl PartialEq for AntlrError
Source§fn eq(&self, other: &AntlrError) -> bool
fn eq(&self, other: &AntlrError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AntlrError
impl StructuralPartialEq for AntlrError
Auto Trait Implementations§
impl Freeze for AntlrError
impl RefUnwindSafe for AntlrError
impl Send for AntlrError
impl Sync for AntlrError
impl Unpin for AntlrError
impl UnsafeUnpin for AntlrError
impl UnwindSafe for AntlrError
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