pub struct LocatedLexerError {
pub kind: LexerError,
pub location: Option<ErrorLocation>,
}Expand description
Lexer error with optional source location.
Fields§
§kind: LexerErrorError kind reported by the lexer.
location: Option<ErrorLocation>Source location, if available.
Trait Implementations§
Source§impl Clone for LocatedLexerError
impl Clone for LocatedLexerError
Source§fn clone(&self) -> LocatedLexerError
fn clone(&self) -> LocatedLexerError
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 moreSource§impl Debug for LocatedLexerError
impl Debug for LocatedLexerError
Source§impl Display for LocatedLexerError
impl Display for LocatedLexerError
Source§impl Error for LocatedLexerError
Available on crate feature std only.
impl Error for LocatedLexerError
Available on crate feature
std only.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 Hash for LocatedLexerError
impl Hash for LocatedLexerError
Source§impl PartialEq for LocatedLexerError
impl PartialEq for LocatedLexerError
impl Copy for LocatedLexerError
impl Eq for LocatedLexerError
impl StructuralPartialEq for LocatedLexerError
Auto Trait Implementations§
impl Freeze for LocatedLexerError
impl RefUnwindSafe for LocatedLexerError
impl Send for LocatedLexerError
impl Sync for LocatedLexerError
impl Unpin for LocatedLexerError
impl UnsafeUnpin for LocatedLexerError
impl UnwindSafe for LocatedLexerError
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