pub enum LexicalErrorKind {
InvalidToken,
InvalidInteger(ParseIntError),
}Expand description
Categories of lexical errors produced by Lexer.
Variants§
InvalidToken
InvalidInteger(ParseIntError)
Trait Implementations§
Source§impl Clone for LexicalErrorKind
impl Clone for LexicalErrorKind
Source§fn clone(&self) -> LexicalErrorKind
fn clone(&self) -> LexicalErrorKind
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 LexicalErrorKind
impl Debug for LexicalErrorKind
Source§impl Default for LexicalErrorKind
impl Default for LexicalErrorKind
Source§fn default() -> LexicalErrorKind
fn default() -> LexicalErrorKind
Returns the “default value” for a type. Read more
Source§impl From<ParseIntError> for LexicalErrorKind
impl From<ParseIntError> for LexicalErrorKind
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LexicalErrorKind
impl PartialEq for LexicalErrorKind
impl StructuralPartialEq for LexicalErrorKind
Auto Trait Implementations§
impl Freeze for LexicalErrorKind
impl RefUnwindSafe for LexicalErrorKind
impl Send for LexicalErrorKind
impl Sync for LexicalErrorKind
impl Unpin for LexicalErrorKind
impl UnwindSafe for LexicalErrorKind
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