[][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>, 

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> Send for MapResult<F> where
    F: Send

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

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

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

Blanket Implementations

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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