[][src]Struct parser_fuck::combinators::Map

pub struct Map<B: Parser<I>, I: TimeTravel, F> { /* fields omitted */ }

Map a Parser<Output = T> to Parser<Output = U> by applying a function to a contained value

Methods

impl<B: Parser<I>, I: TimeTravel, U, F> Map<B, I, F> where
    F: FnMut(B::Output) -> U, 
[src]

pub fn new(base: B, f: F) -> Self[src]

Trait Implementations

impl<B: Clone + Parser<I>, I: Clone + TimeTravel, F: Clone> Clone for Map<B, I, F>[src]

impl<B: Debug + Parser<I>, I: Debug + TimeTravel, F: Debug> Debug for Map<B, I, F>[src]

impl<B: Eq + Parser<I>, I: Eq + TimeTravel, F: Eq> Eq for Map<B, I, F>[src]

impl<B: Parser<I>, I: TimeTravel, U, F> Parser<I> for Map<B, I, F> where
    F: FnMut(B::Output) -> U, 
[src]

type Output = U

impl<B: PartialEq + Parser<I>, I: PartialEq + TimeTravel, F: PartialEq> PartialEq<Map<B, I, F>> for Map<B, I, F>[src]

impl<B: Parser<I>, I: TimeTravel, F> StructuralEq for Map<B, I, F>[src]

impl<B: Parser<I>, I: TimeTravel, F> StructuralPartialEq for Map<B, I, F>[src]

Auto Trait Implementations

impl<B, I, F> !RefUnwindSafe for Map<B, I, F>

impl<B, I, F> Send for Map<B, I, F> where
    B: Send,
    F: Send,
    I: Send

impl<B, I, F> !Sync for Map<B, I, F>

impl<B, I, F> Unpin for Map<B, I, F> where
    B: Unpin,
    F: Unpin,
    I: Unpin

impl<B, I, F> UnwindSafe for Map<B, I, F> where
    B: UnwindSafe,
    F: UnwindSafe,
    I: 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<I, U, F> Parser<I> for F where
    F: Fn(I) -> Option<U>,
    I: TimeTravel
[src]

type Output = U

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,