Struct Map

struct Map<F, G, I, O, O2, E> { ... }
where
    F: Parser<I, O, E>,
    G: FnMut(O) -> O2

Parser implementation for Parser::map

Implementations

impl<F, G, I, O, O2, E> Freeze for Map<F, G, I, O, O2, E>

impl<F, G, I, O, O2, E> Parser for Map<F, G, I, O, O2, E>

fn parse_next(self: &mut Self, i: &mut I) -> Result<O2, E>

impl<F, G, I, O, O2, E> RefUnwindSafe for Map<F, G, I, O, O2, E>

impl<F, G, I, O, O2, E> Send for Map<F, G, I, O, O2, E>

impl<F, G, I, O, O2, E> Sync for Map<F, G, I, O, O2, E>

impl<F, G, I, O, O2, E> Unpin for Map<F, G, I, O, O2, E>

impl<F, G, I, O, O2, E> UnsafeUnpin for Map<F, G, I, O, O2, E>

impl<F, G, I, O, O2, E> UnwindSafe for Map<F, G, I, O, O2, E>

impl<I, O, E, P> ModalParser for Map<F, G, I, O, O2, E>

impl<T> Any for Map<F, G, I, O, O2, E>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Map<F, G, I, O, O2, E>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Map<F, G, I, O, O2, E>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for Map<F, G, I, O, O2, E>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for Map<F, G, I, O, O2, E>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Map<F, G, I, O, O2, E>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Map<F, G, I, O, O2, E>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>