Enum a2lfile::TokenizerError
source · #[non_exhaustive]pub enum TokenizerError {
IncludeFileError {
filename: String,
line: u32,
incname: String,
},
IncompleteIncludeError {
filename: String,
line: u32,
},
InvalidA2lToken {
filename: String,
line: u32,
tokentext: String,
},
InvalidNumericalConstant {
filename: String,
line: u32,
tokentext: String,
},
UnclosedComment {
filename: String,
line: u32,
},
UnclosedString {
filename: String,
line: u32,
},
MissingWhitespace {
filename: String,
line: u32,
},
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
IncludeFileError
IncompleteIncludeError
InvalidA2lToken
InvalidNumericalConstant
UnclosedComment
UnclosedString
MissingWhitespace
Trait Implementations§
source§impl Debug for TokenizerError
impl Debug for TokenizerError
source§impl Display for TokenizerError
impl Display for TokenizerError
source§impl Error for TokenizerError
impl Error for TokenizerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 TokenizerError
impl RefUnwindSafe for TokenizerError
impl Send for TokenizerError
impl Sync for TokenizerError
impl Unpin for TokenizerError
impl UnwindSafe for TokenizerError
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