Enum cexpr::ErrorKind [−][src]
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
Tuple Fields of ExactToken
0: Kind
1: &'static [u8]
ExactTokens(Kind, &'static [&'static str])
Expected one of the specified tokens
Tuple Fields of ExactTokens
0: Kind
1: &'static [&'static str]
TypedToken(Kind)
Expected a token of the specified kind
Tuple Fields of TypedToken
0: Kind
An unknown identifier was encountered
An invalid literal was encountered.
When encountered, this generally means a bug exists in the data that was passed in or the parsing logic.
A full parse was requested, but data was left over after parsing finished.
Parser(ErrorKind)
An error occurred in an underlying nom parser.
Tuple Fields of Parser
0: ErrorKind