Enum arret_syntax::error::ErrorKind [−][src]
pub enum ErrorKind {
Eof(WithinContext),
UnsupportedDispatch,
UnsupportedChar,
InvalidCodePoint,
UnsupportedStringEscape,
IntegerOverflow,
InvalidFloat,
UnexpectedChar(char, WithinContext),
UnevenMap,
InvalidArgLiteral,
}Syntax error without (span)Span information
Variants
Eof(WithinContext)UnexpectedChar(char, WithinContext)Implementations
impl ErrorKind[src]
impl ErrorKind[src]pub fn message(&self) -> String[src]
Returns a string describing the error
pub fn within_context(&self) -> Option<WithinContext>[src]
Returns the context this error was encountered in
This is used to disambiguate errors that can occur in multiple contexts. Other error types
(e.g. InvalidFloat) require no additional context.