[][src]Enum kg_diag::parse::error::ParseErrorDetail

pub enum ParseErrorDetail {
    Io(IoErrorDetail),
    UnexpectedEof {
        pos: Position,
        expected: Option<Expected>,
        task: String,
    },
    UnexpectedInput {
        pos: Position,
        found: Option<Input>,
        expected: Option<Expected>,
        task: String,
    },
    Numerical {
        span: Span,
        kind: NumericalErrorKind,
    },
}

Variants

Io(IoErrorDetail)UnexpectedEof

Fields of UnexpectedEof

pos: Positionexpected: Option<Expected>task: String
UnexpectedInput

Fields of UnexpectedInput

pos: Positionfound: Option<Input>expected: Option<Expected>task: String
Numerical

Fields of Numerical

span: Spankind: NumericalErrorKind

Trait Implementations

impl Detail for ParseErrorDetail[src]

impl Eq for ParseErrorDetail[src]

impl Clone for ParseErrorDetail[src]

impl PartialEq<ParseErrorDetail> for ParseErrorDetail[src]

impl From<IoErrorDetail> for ParseErrorDetail[src]

impl Display for ParseErrorDetail[src]

impl Debug for ParseErrorDetail[src]

Auto Trait Implementations

Blanket Implementations

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

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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