[][src]Enum gobble::err::Expected

pub enum Expected {
    EOI,
    Char(char),
    WS,
    CharIn(&'static str),
    ObOn(&'static str, &'static str),
    Str(&'static str),
    OneOf(Vec<Expected>),
    Except(Box<Expected>),
}

Variants

EOI
Char(char)
WS
CharIn(&'static str)
ObOn(&'static str, &'static str)
Str(&'static str)
OneOf(Vec<Expected>)
Except(Box<Expected>)

Implementations

impl Expected[src]

pub fn or(self, b: Self) -> Self[src]

pub fn except(a: Self) -> Self[src]

pub fn is_nil(&self) -> bool[src]

pub fn first(a: Self, b: Self) -> Self[src]

Trait Implementations

impl Clone for Expected[src]

impl Debug for Expected[src]

impl Display for Expected[src]

impl Eq for Expected[src]

impl Error for Expected[src]

impl Hash for Expected[src]

impl PartialEq<Expected> for Expected[src]

impl StructuralEq for Expected[src]

impl StructuralPartialEq for Expected[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.