[][src]Enum oso::errors::polar::ParseError

pub enum ParseError {
    IntegerOverflow {
        token: String,
        loc: usize,
    },
    InvalidTokenCharacter {
        token: String,
        c: char,
        loc: usize,
    },
    InvalidToken {
        loc: usize,
    },
    UnrecognizedEOF {
        loc: usize,
    },
    UnrecognizedToken {
        token: String,
        loc: usize,
    },
    ExtraToken {
        token: String,
        loc: usize,
    },
    ReservedWord {
        token: String,
        loc: usize,
    },
    InvalidFloat {
        token: String,
        loc: usize,
    },
}

Variants

IntegerOverflow

Fields of IntegerOverflow

token: Stringloc: usize
InvalidTokenCharacter

Fields of InvalidTokenCharacter

token: Stringc: charloc: usize
InvalidToken

Fields of InvalidToken

loc: usize
UnrecognizedEOF

Fields of UnrecognizedEOF

loc: usize
UnrecognizedToken

Fields of UnrecognizedToken

token: Stringloc: usize
ExtraToken

Fields of ExtraToken

token: Stringloc: usize
ReservedWord

Fields of ReservedWord

token: Stringloc: usize
InvalidFloat

Fields of InvalidFloat

token: Stringloc: usize

Trait Implementations

impl Clone for ParseError[src]

impl Debug for ParseError[src]

impl<'de> Deserialize<'de> for ParseError[src]

impl Display for ParseError[src]

impl From<ParseError> for PolarError[src]

impl Serialize for ParseError[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.