pub struct LRLexError { /* private fields */ }
Expand description
A Lexing error.
Implementations§
Source§impl LRLexError
impl LRLexError
Sourcepub fn new_with_lexing_state(span: Span, lexing_state: StartStateId) -> Self
pub fn new_with_lexing_state(span: Span, lexing_state: StartStateId) -> Self
Construct a new LRLex error covering span
for lexing_state
.
Sourcepub fn lexing_state(&self) -> Option<StartStateId>
pub fn lexing_state(&self) -> Option<StartStateId>
Returns the state, if there was one, that the lexer was in when the error was detected.
Trait Implementations§
Source§impl Clone for LRLexError
impl Clone for LRLexError
Source§fn clone(&self) -> LRLexError
fn clone(&self) -> LRLexError
Returns a copy 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 moreSource§impl Debug for LRLexError
impl Debug for LRLexError
Source§impl Display for LRLexError
impl Display for LRLexError
Source§impl Error for LRLexError
impl Error for LRLexError
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()
Auto Trait Implementations§
impl Freeze for LRLexError
impl RefUnwindSafe for LRLexError
impl Send for LRLexError
impl Sync for LRLexError
impl Unpin for LRLexError
impl UnwindSafe for LRLexError
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