Struct winnow::combinator::Context

source ·
pub struct Context<F, I, O, E, C>where
    F: Parser<I, O, E>,
    I: Stream,
    E: ContextError<I, C>,
    C: Clone + Debug,
{ /* private fields */ }
Expand description

Implementation of Parser::context

Trait Implementations§

Take tokens from the Stream, turning it into the output Read more
Treat &mut Self as a parser Read more
Produce the provided value Read more
Discards the output of the Parser Read more
Convert the parser’s output to another type using std::convert::From Read more
Produce the consumed input as produced value. Read more
Produce the consumed input with the output Read more
Maps a function over the output of a parser Read more
Applies a function returning a Result over the output of a parser. Read more
Creates a parser from the output of this one Read more
If parsing fails, add context to the error Read more
Convert the parser’s error to another type using std::convert::From

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.