Struct winnow::combinator::CompleteErr
source · pub struct CompleteErr<F> { /* private fields */ }
Expand description
Implementation of Parser::complete_err
Trait Implementations§
source§impl<F, I, O, E> Parser<I, O, E> for CompleteErr<F>where
I: Stream,
F: Parser<I, O, E>,
E: ParseError<I>,
impl<F, I, O, E> Parser<I, O, E> for CompleteErr<F>where I: Stream, F: Parser<I, O, E>, E: ParseError<I>,
source§fn parse_next(&mut self, input: I) -> IResult<I, O, E>
fn parse_next(&mut self, input: I) -> IResult<I, O, E>
source§fn by_ref(&mut self) -> ByRef<'_, Self>where
Self: Sized,
fn by_ref(&mut self) -> ByRef<'_, Self>where Self: Sized,
Treat
&mut Self
as a parser Read moresource§fn value<O2>(self, val: O2) -> Value<Self, I, O, O2, E>where
Self: Sized,
O2: Clone,
fn value<O2>(self, val: O2) -> Value<Self, I, O, O2, E>where Self: Sized, O2: Clone,
Produce the provided value Read more
source§fn void(self) -> Void<Self, I, O, E>where
Self: Sized,
fn void(self) -> Void<Self, I, O, E>where Self: Sized,
Discards the output of the
Parser
Read moresource§fn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>where
Self: Sized,
O: Into<O2>,
fn output_into<O2>(self) -> OutputInto<Self, I, O, O2, E>where Self: Sized, O: Into<O2>,
Convert the parser’s output to another type using
std::convert::From
Read moresource§fn recognize(self) -> Recognize<Self, I, O, E>where
Self: Sized,
I: Stream + Offset,
fn recognize(self) -> Recognize<Self, I, O, E>where Self: Sized, I: Stream + Offset,
Produce the consumed input as produced value. Read more
source§fn with_recognized(self) -> WithRecognized<Self, I, O, E>where
Self: Sized,
I: Stream + Offset,
fn with_recognized(self) -> WithRecognized<Self, I, O, E>where Self: Sized, I: Stream + Offset,
Produce the consumed input with the output Read more
source§fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>where
G: Fn(O) -> O2,
Self: Sized,
fn map<G, O2>(self, map: G) -> Map<Self, G, I, O, O2, E>where G: Fn(O) -> O2, Self: Sized,
Maps a function over the output of a parser Read more
source§fn map_res<G, O2, E2>(self, map: G) -> MapRes<Self, G, I, O, O2, E, E2>where
Self: Sized,
G: FnMut(O) -> Result<O2, E2>,
I: Clone,
E: FromExternalError<I, E2>,
fn map_res<G, O2, E2>(self, map: G) -> MapRes<Self, G, I, O, O2, E, E2>where Self: Sized, G: FnMut(O) -> Result<O2, E2>, I: Clone, E: FromExternalError<I, E2>,
Applies a function returning a
Result
over the output of a parser. Read moresource§fn verify_map<G, O2>(self, map: G) -> VerifyMap<Self, G, I, O, O2, E>where
Self: Sized,
G: FnMut(O) -> Option<O2>,
I: Clone,
E: ParseError<I>,
fn verify_map<G, O2>(self, map: G) -> VerifyMap<Self, G, I, O, O2, E>where Self: Sized, G: FnMut(O) -> Option<O2>, I: Clone, E: ParseError<I>,
source§fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>where
Self: Sized,
G: FnMut(O) -> H,
H: Parser<I, O2, E>,
fn flat_map<G, H, O2>(self, map: G) -> FlatMap<Self, G, H, I, O, O2, E>where Self: Sized, G: FnMut(O) -> H, H: Parser<I, O2, E>,
Creates a parser from the output of this one Read more
source§fn parse_to<O2>(self) -> ParseTo<Self, I, O, O2, E>where
Self: Sized,
I: Stream,
O: ParseSlice<O2>,
E: ParseError<I>,
fn parse_to<O2>(self) -> ParseTo<Self, I, O, O2, E>where Self: Sized, I: Stream, O: ParseSlice<O2>, E: ParseError<I>,
Apply
std::str::FromStr
to the output of the parser Read moresource§fn verify<G, O2>(self, filter: G) -> Verify<Self, G, I, O, O2, E>where
Self: Sized,
G: Fn(&O2) -> bool,
I: Clone,
O: Borrow<O2>,
O2: ?Sized,
E: ParseError<I>,
fn verify<G, O2>(self, filter: G) -> Verify<Self, G, I, O, O2, E>where Self: Sized, G: Fn(&O2) -> bool, I: Clone, O: Borrow<O2>, O2: ?Sized, E: ParseError<I>,
Returns the output of the child parser if it satisfies a verification function. Read more
source§fn context<C>(self, context: C) -> Context<Self, I, O, E, C>where
Self: Sized,
I: Stream,
E: ContextError<I, C>,
C: Clone + Debug,
fn context<C>(self, context: C) -> Context<Self, I, O, E, C>where Self: Sized, I: Stream, E: ContextError<I, C>, C: Clone + Debug,
If parsing fails, add context to the error Read more