Struct combine::parser::error::Expected[][src]

pub struct Expected<P>(_, _)
where
    P: Parser
;

Trait Implementations

impl<P: Clone> Clone for Expected<P> where
    P: Parser,
    P::Input: Clone,
    P::Input: Clone
[src]

impl<P> Parser for Expected<P> where
    P: Parser
[src]

type Input = P::Input

The type which is taken as input for the parser. The type must implement the Stream trait which allows the parser to read items from the type. Read more

type Output = P::Output

The type which is returned if the parser is successful.

type PartialState = P::PartialState

Determines the state necessary to resume parsing after more input is supplied. Read more

Auto Trait Implementations

impl<P> RefUnwindSafe for Expected<P> where
    P: RefUnwindSafe,
    <<P as Parser>::Input as StreamOnce>::Item: RefUnwindSafe,
    <<P as Parser>::Input as StreamOnce>::Range: RefUnwindSafe

impl<P> Send for Expected<P> where
    P: Send,
    <<P as Parser>::Input as StreamOnce>::Item: Send,
    <<P as Parser>::Input as StreamOnce>::Range: Send

impl<P> Sync for Expected<P> where
    P: Sync,
    <<P as Parser>::Input as StreamOnce>::Item: Sync,
    <<P as Parser>::Input as StreamOnce>::Range: Sync

impl<P> Unpin for Expected<P> where
    P: Unpin,
    <<P as Parser>::Input as StreamOnce>::Item: Unpin,
    <<P as Parser>::Input as StreamOnce>::Range: Unpin

impl<P> UnwindSafe for Expected<P> where
    P: UnwindSafe,
    <<P as Parser>::Input as StreamOnce>::Item: UnwindSafe,
    <<P as Parser>::Input as StreamOnce>::Range: UnwindSafe

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, 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.