Type Definition combine::primitives::ConsumedResult
[−]
[src]
type ConsumedResult<O, I> = FastResult<(O, I), StreamError<I>>;
A Result
type which has the consumed status flattened into the result.
Conversions to and from std::result::Result
can be done using result.into()
or
From::from(result)
Methods
impl<T, E> ConsumedResult<T, E> where
E: StreamOnce + Positioned,
[src]
E: StreamOnce + Positioned,
fn map<F, T2>(self, f: F) -> ConsumedResult<F::Output, E> where
F: FnOnce(T) -> T2,
F: FnOnce(T) -> T2,
Trait Implementations
impl<O, I> Into<ParseResult<O, I>> for ConsumedResult<O, I> where
I: StreamOnce + Positioned,
[src]
I: StreamOnce + Positioned,
fn into(self) -> ParseResult<O, I>
Performs the conversion.
impl<O, I> From<ParseResult<O, I>> for ConsumedResult<O, I> where
I: StreamOnce + Positioned,
[src]
I: StreamOnce + Positioned,
fn from(result: ParseResult<O, I>) -> ConsumedResult<O, I>
Performs the conversion.