[][src]Enum ketos::parser::ParseErrorKind

pub enum ParseErrorKind {
    CannotDocumentItem,
    DocCommentEof,
    InvalidLiteral,
    InvalidToken,
    InvalidByte(char),
    InvalidByteEscape(char),
    InvalidChar(char),
    InvalidNumericEscape(char),
    LiteralParseError,
    MissingCloseParen,
    UnbalancedComma,
    UnexpectedEof,
    UnexpectedToken {
        expected: &'static str,
        found: &'static str,
    },
    UnknownCharEscape(char),
    UnmatchedParen,
    UnterminatedChar,
    UnterminatedComment,
    UnterminatedString,
}

Describes the kind of error encountered in parsing.

Variants

CannotDocumentItem

Doc comment followed by incompatible token

DocCommentEof

Doc comment at end-of-file

InvalidLiteral

Error in parsing literal

InvalidToken

Error in parsing token

InvalidByte(char)

Invalid character in byte or byte string literal

InvalidByteEscape(char)

Invalid escape sequence in byte or byte string literal

InvalidChar(char)

Invalid character in input

InvalidNumericEscape(char)

Invalid character in numeric escape sequence \xNN or \u{NNNN}

LiteralParseError

Error parsing literal string into value

MissingCloseParen

Missing closing parenthesis

UnbalancedComma

More commas than backquotes

UnexpectedEof

Unexpected end-of-file

UnexpectedToken

Unexpected token

Fields of UnexpectedToken

expected: &'static str

Token or category of token expected

found: &'static str

Token found

UnknownCharEscape(char)

Unrecognized character escape

UnmatchedParen

Unmatched )

UnterminatedChar

Unterminated character constant

UnterminatedComment

Unterminated block comment

UnterminatedString

Unterminated string constant

Trait Implementations

impl Clone for ParseErrorKind[src]

impl Copy for ParseErrorKind[src]

impl Debug for ParseErrorKind[src]

impl Display for ParseErrorKind[src]

impl Eq for ParseErrorKind[src]

impl PartialEq<ParseErrorKind> for ParseErrorKind[src]

impl StructuralEq for ParseErrorKind[src]

impl StructuralPartialEq for ParseErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,