[][src]Enum wac::LexError

pub enum LexError {
    Unrecognized {
        span: Span,
        text: String,
    },
    BadRawStringQuote {
        span: Span,
        actual: char,
    },
    BadEndState {
        state: String,
    },
    UnterminatedStringLiteral {
        span: Span,
    },
    MismatchedGroupingSymbols {
        span: Span,
        open: char,
        close: char,
    },
    UnterminatedGroupingSymbol {
        open: char,
    },
}

Variants

Unrecognized

Fields of Unrecognized

span: Span

the location in the string where we encountered the unrecognized token

text: String

the start of the unrecognized token

BadRawStringQuote

Fields of BadRawStringQuote

span: Span

the location where we expected to see the quote char

actual: char

the actual character that was seen instead of ' or "

BadEndState

Fields of BadEndState

state: String

string describing the end state encountered

UnterminatedStringLiteral

Fields of UnterminatedStringLiteral

span: Span

index into the string marking the start of the unterminated strin gliteral

MismatchedGroupingSymbols

Fields of MismatchedGroupingSymbols

span: Spanopen: charclose: char
UnterminatedGroupingSymbol

Fields of UnterminatedGroupingSymbol

open: char

Implementations

impl LexError[src]

pub fn span(&self) -> Span[src]

Trait Implementations

impl Debug for LexError[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> FromBits<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.