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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)