pub enum ErrorKind {
ExactToken(Kind, &'static [u8]),
ExactTokens(Kind, &'static [&'static str]),
TypedToken(Kind),
UnknownIdentifier,
InvalidLiteral,
Partial,
Parser(ErrorKind),
}
Expand description
Parsing errors specific to C parsing
Variants§
ExactToken(Kind, &'static [u8])
Expected the specified token
ExactTokens(Kind, &'static [&'static str])
Expected one of the specified tokens
TypedToken(Kind)
Expected a token of the specified kind
UnknownIdentifier
An unknown identifier was encountered
InvalidLiteral
An invalid literal was encountered.
When encountered, this generally means a bug exists in the data that was passed in or the parsing logic.
Partial
A full parse was requested, but data was left over after parsing finished.
Parser(ErrorKind)
An error occurred in an underlying nom parser.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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