[][src]Struct nom_supreme::parser_ext::MapRes

pub struct MapRes<P, F, O, E2> { /* fields omitted */ }

Parser which runs a fallible mapping function on the output of the subparser. Any errors returned by the mapping function are transformed into a parse error.

Trait Implementations

impl<P: Clone, F: Clone, O: Clone, E2: Clone> Clone for MapRes<P, F, O, E2>[src]

impl<P: Copy, F: Copy, O: Copy, E2: Copy> Copy for MapRes<P, F, O, E2>[src]

impl<P: Debug, F: Debug, O: Debug, E2: Debug> Debug for MapRes<P, F, O, E2>[src]

impl<P, F, I, O, E, O2, E2> Parser<I, O2, E> for MapRes<P, F, O, E2> where
    P: Parser<I, O, E>,
    F: FnMut(O) -> Result<O2, E2>,
    E: FromExternalError<I, E2>,
    I: Clone
[src]

Auto Trait Implementations

impl<P, F, O, E2> RefUnwindSafe for MapRes<P, F, O, E2> where
    E2: RefUnwindSafe,
    F: RefUnwindSafe,
    O: RefUnwindSafe,
    P: RefUnwindSafe
[src]

impl<P, F, O, E2> Send for MapRes<P, F, O, E2> where
    E2: Send,
    F: Send,
    O: Send,
    P: Send
[src]

impl<P, F, O, E2> Sync for MapRes<P, F, O, E2> where
    E2: Sync,
    F: Sync,
    O: Sync,
    P: Sync
[src]

impl<P, F, O, E2> Unpin for MapRes<P, F, O, E2> where
    E2: Unpin,
    F: Unpin,
    O: Unpin,
    P: Unpin
[src]

impl<P, F, O, E2> UnwindSafe for MapRes<P, F, O, E2> where
    E2: UnwindSafe,
    F: UnwindSafe,
    O: UnwindSafe,
    P: UnwindSafe
[src]

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> Conv for T

impl<T> Conv for T

impl<I, T> ExtractContext<I, ()> for T[src]

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I, O, E, P> ParserExt<I, O, E> for P where
    P: Parser<I, O, E>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<I> RecreateContext<I> for I[src]

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

impl<T> TryConv for T

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.