pub enum LexingError {
UnknownToken,
UnterminatedString(usize),
}
Expand description
An enumeration of errors that can occur during the lexing process.
Variants§
UnknownToken
UnterminatedString(usize)
First value is the index of the first character of the unterminated string
Trait Implementations§
Source§impl Clone for LexingError
impl Clone for LexingError
Source§fn clone(&self) -> LexingError
fn clone(&self) -> LexingError
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 LexingError
impl Debug for LexingError
Source§impl Default for LexingError
impl Default for LexingError
Source§fn default() -> LexingError
fn default() -> LexingError
Returns the “default value” for a type. Read more
Source§impl PartialEq for LexingError
impl PartialEq for LexingError
impl StructuralPartialEq for LexingError
Auto Trait Implementations§
impl Freeze for LexingError
impl RefUnwindSafe for LexingError
impl Send for LexingError
impl Sync for LexingError
impl Unpin for LexingError
impl UnwindSafe for LexingError
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