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: Kind1: &'static [u8]
ExactTokens(Kind&'static [&'static str])

Expected one of the specified tokens

Tuple Fields of ExactTokens

0: Kind1: &'static [&'static str]
TypedToken(Kind)

Expected a token of the specified kind

Tuple Fields of TypedToken

0: 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.

Tuple Fields of Parser

0: ErrorKind

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.