Struct combine::parser::item::OneOf[][src]

pub struct OneOf<T, I> where
    I: Stream
{ /* fields omitted */ }

Trait Implementations

impl<T: Clone, I: Clone> Clone for OneOf<T, I> where
    I: Stream
[src]

impl<T: Copy, I: Copy> Copy for OneOf<T, I> where
    I: Stream
[src]

impl<T, I> Parser for OneOf<T, I> where
    T: Clone + IntoIterator<Item = I::Item>,
    I: Stream,
    I::Item: PartialEq
[src]

type Input = I

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 = I::Item

The type which is returned if the parser is successful.

type PartialState = ()

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

Auto Trait Implementations

impl<T, I> RefUnwindSafe for OneOf<T, I> where
    I: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, I> Send for OneOf<T, I> where
    I: Send,
    T: Send

impl<T, I> Sync for OneOf<T, I> where
    I: Sync,
    T: Sync

impl<T, I> Unpin for OneOf<T, I> where
    I: Unpin,
    T: Unpin

impl<T, I> UnwindSafe for OneOf<T, I> where
    I: UnwindSafe,
    T: 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.