[][src]Struct combinedfun::MapResult

pub struct MapResult<F>(pub F);

This wrapper can be used to map to a Result instead of mapping to the output without being able to fail the parser.

Trait Implementations

impl<F1, F2, I, O> Shr<MapResult<F2>> for Parser<F1, I> where
    F1: ParserImpl<I>,
    F2: Fn(F1::Output) -> Result<O, F1::Error>, 
[src]

type Output = Parser<MapResult<F1, F2>, I>

The resulting type after applying the >> operator.

Auto Trait Implementations

impl<F> Sync for MapResult<F> where
    F: Sync

impl<F> Unpin for MapResult<F> where
    F: Unpin

impl<F> Send for MapResult<F> where
    F: Send

impl<F> UnwindSafe for MapResult<F> where
    F: UnwindSafe

impl<F> RefUnwindSafe for MapResult<F> where
    F: RefUnwindSafe

Blanket Implementations

impl<I, P, T> Tag<Span<I, P>> for T where
    I: Clone,
    P: Position<I>,
    T: Tag<I> + ?Sized
[src]

type Output = <T as Tag<I>>::Output

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

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]