[][src]Struct combine::parser::choice::Or

pub struct Or<P1, P2>(_);

Trait Implementations

impl<P1: Clone, P2: Clone> Clone for Or<P1, P2>[src]

impl<P1: Copy, P2: Copy> Copy for Or<P1, P2>[src]

impl<Input, O, P1, P2> Parser<Input> for Or<P1, P2> where
    Input: Stream,
    P1: Parser<Input, Output = O>,
    P2: Parser<Input, Output = O>, 
[src]

type Output = O

The type which is returned if the parser is successful.

type PartialState = <Choice<(P1, P2)> as Parser<Input>>::PartialState

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

Auto Trait Implementations

impl<P1, P2> RefUnwindSafe for Or<P1, P2> where
    P1: RefUnwindSafe,
    P2: RefUnwindSafe
[src]

impl<P1, P2> Send for Or<P1, P2> where
    P1: Send,
    P2: Send
[src]

impl<P1, P2> Sync for Or<P1, P2> where
    P1: Sync,
    P2: Sync
[src]

impl<P1, P2> Unpin for Or<P1, P2> where
    P1: Unpin,
    P2: Unpin
[src]

impl<P1, P2> UnwindSafe for Or<P1, P2> where
    P1: UnwindSafe,
    P2: UnwindSafe
[src]

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.