[][src]Struct combine::parser::combinator::Map

pub struct Map<P, F>(_, _);

Trait Implementations

impl<P: Clone, F: Clone> Clone for Map<P, F>[src]

impl<P: Copy, F: Copy> Copy for Map<P, F>[src]

impl<Input, A, B, P, F> Parser<Input> for Map<P, F> where
    Input: Stream,
    P: Parser<Input, Output = A>,
    F: FnMut(A) -> B, 
[src]

type Output = B

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, F> RefUnwindSafe for Map<P, F> where
    F: RefUnwindSafe,
    P: RefUnwindSafe

impl<P, F> Send for Map<P, F> where
    F: Send,
    P: Send

impl<P, F> Sync for Map<P, F> where
    F: Sync,
    P: Sync

impl<P, F> Unpin for Map<P, F> where
    F: Unpin,
    P: Unpin

impl<P, F> UnwindSafe for Map<P, F> where
    F: UnwindSafe,
    P: 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<Input, P> EasyParser<Input> for P where
    Input: Stream,
    P: Parser<Stream<Input>> + ?Sized,
    <Input as StreamOnce>::Token: PartialEq<<Input as StreamOnce>::Token>,
    <Input as StreamOnce>::Range: PartialEq<<Input as StreamOnce>::Range>, 
[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.