[][src]Enum rune::ParseErrorKind

pub enum ParseErrorKind {
    Custom {
        message: &'static str,
    },
    ResolveError {
        error: ResolveErrorKind,
    },
    ExpectedEof {
        actual: Kind,
    },
    UnexpectedEof,
    BadLexerMode {
        actual: LexerMode,
        expected: LexerMode,
    },
    Expected {
        actual: &'static str,
        expected: &'static str,
    },
    Unsupported {
        what: &'static str,
    },
    ExpectedEscape,
    UnterminatedStrLit,
    UnterminatedByteStrLit,
    UnterminatedCharLit,
    UnterminatedByteLit,
    ExpectedCharClose,
    ExpectedCharOrLabel,
    ExpectedByteClose,
    UnexpectedChar {
        c: char,
    },
    PrecedenceGroupRequired,
    BadNumberOutOfBounds,
    BadFieldAccess,
    ExpectedMacroCloseDelimiter {
        expected: Kind,
        actual: Kind,
    },
    BadNumber,
    MultipleMatchingAttributes {
        name: &'static str,
    },
}

Error when parsing.

Variants

Custom

Fields of Custom

message: &'static str
ResolveError

Fields of ResolveError

error: ResolveErrorKind
ExpectedEof

Fields of ExpectedEof

actual: Kind
UnexpectedEof
BadLexerMode

Fields of BadLexerMode

actual: LexerModeexpected: LexerMode
Expected

Fields of Expected

actual: &'static strexpected: &'static str
Unsupported

Fields of Unsupported

what: &'static str
ExpectedEscape
UnterminatedStrLit
UnterminatedByteStrLit
UnterminatedCharLit
UnterminatedByteLit
ExpectedCharClose
ExpectedCharOrLabel
ExpectedByteClose
UnexpectedChar

Fields of UnexpectedChar

c: char
PrecedenceGroupRequired
BadNumberOutOfBounds
BadFieldAccess
ExpectedMacroCloseDelimiter

Fields of ExpectedMacroCloseDelimiter

expected: Kindactual: Kind
BadNumber
MultipleMatchingAttributes

Fields of MultipleMatchingAttributes

name: &'static str

Trait Implementations

impl Clone for ParseErrorKind[src]

impl Copy for ParseErrorKind[src]

impl Debug for ParseErrorKind[src]

impl Display for ParseErrorKind[src]

impl Error for ParseErrorKind[src]

impl From<ParseErrorKind> for CompileErrorKind[src]

impl From<ParseErrorKind> for QueryErrorKind[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.