[−][src]Struct nom::MapConsumer
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]
fn handle(&mut self, input: Input<R>) -> &ConsumerState<T, E, M>[src]
fn state(&self) -> &ConsumerState<T, E, M>[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,
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,
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,
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,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,