pub enum LexingError {
InvalidInteger(String),
UnexpectedToken,
ImproperTimeFormatting,
NonAsciiCharacter,
IncompleteWidth,
NegativeBitWidth,
}Expand description
Errors occurring due to incorrect character sequences
Variants§
InvalidInteger(String)
Invalid integer found
UnexpectedToken
Unexpected token or generic error
ImproperTimeFormatting
Improper time format found
NonAsciiCharacter
Non ASCII character found (not currently used)
IncompleteWidth
Bit width opened but not closed
NegativeBitWidth
Bit width determined to be negative
Trait Implementations§
Source§impl Clone for LexingError
impl Clone for LexingError
Source§fn clone(&self) -> LexingError
fn clone(&self) -> LexingError
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 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 From<ParseIntError> for LexingError
Error type returned by calling lex.slice().parse() to u8
impl From<ParseIntError> for LexingError
Error type returned by calling lex.slice().parse() to u8
Source§fn from(err: ParseIntError) -> Self
fn from(err: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl Into<String> for LexingError
impl Into<String> for LexingError
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