Struct winnow::combinator::AndThen
source · pub struct AndThen<F, G, I, O, O2, E>where
F: Parser<I, O, E>,
G: Parser<O, O2, E>,
O: StreamIsPartial,{ /* private fields */ }
Expand description
Implementation of Parser::and_then
Trait Implementations§
source§impl<F, G, I, O, O2, E> Parser<I, O2, E> for AndThen<F, G, I, O, O2, E>where
F: Parser<I, O, E>,
G: Parser<O, O2, E>,
O: StreamIsPartial,
impl<F, G, I, O, O2, E> Parser<I, O2, E> for AndThen<F, G, I, O, O2, E>where F: Parser<I, O, E>, G: Parser<O, O2, E>, O: StreamIsPartial,
source§fn parse_next(&mut self, i: I) -> IResult<I, O2, E>
fn parse_next(&mut self, i: I) -> IResult<I, O2, 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 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 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