[][src]Struct nom::MapConsumer

pub struct MapConsumer<'a, C: 'a, R, S, T, E, M, F> { /* fields omitted */ }

MapConsumer takes a function S -> T and applies it on a consumer producing values of type S

Methods

impl<'a, R, S: Clone, T, E: Clone, M: Clone, F: Fn(S) -> T, C: Consumer<R, S, E, M>> MapConsumer<'a, C, R, S, T, E, M, F>[src]

pub fn new(c: &'a mut C, f: F) -> MapConsumer<'a, C, R, S, T, E, M, F>[src]

Trait Implementations

impl<'a, R, S: Clone, T, E: Clone, M: Clone, F: Fn(S) -> T, C: Consumer<R, S, E, M>> Consumer<R, T, E, M> for MapConsumer<'a, C, R, S, T, E, M, F>[src]

Auto Trait Implementations

impl<'a, C, R, S, T, E, M, F> RefUnwindSafe for MapConsumer<'a, C, R, S, T, E, M, F> where
    C: RefUnwindSafe,
    E: RefUnwindSafe,
    F: RefUnwindSafe,
    M: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, C, R, S, T, E, M, F> Send for MapConsumer<'a, C, R, S, T, E, M, F> where
    C: Send,
    E: Send,
    F: Send,
    M: Send,
    R: Send,
    S: Send,
    T: Send

impl<'a, C, R, S, T, E, M, F> Sync for MapConsumer<'a, C, R, S, T, E, M, F> where
    C: Sync,
    E: Sync,
    F: Sync,
    M: Sync,
    R: Sync,
    S: Sync,
    T: Sync

impl<'a, C, R, S, T, E, M, F> Unpin for MapConsumer<'a, C, R, S, T, E, M, F> where
    E: Unpin,
    F: Unpin,
    M: Unpin,
    R: Unpin,
    S: Unpin,
    T: Unpin

impl<'a, C, R, S, T, E, M, F> !UnwindSafe for MapConsumer<'a, C, R, S, T, E, M, F>

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