Struct parser_combinators::combinator::Between
[−]
[src]
pub struct Between<L, R, P>(_)
where
L: Parser,
R: Parser<Input = <L as Parser>::Input>,
P: Parser<Input = <L as Parser>::Input>;
Trait Implementations
impl<L: Clone, R: Clone, P: Clone> Clone for Between<L, R, P> where
L: Parser,
R: Parser<Input = <L as Parser>::Input>,
P: Parser<Input = <L as Parser>::Input>,
[src]
L: Parser,
R: Parser<Input = <L as Parser>::Input>,
P: Parser<Input = <L as Parser>::Input>,
fn clone(&self) -> Between<L, R, P>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<L, R, P> Parser for Between<L, R, P> where
L: Parser,
R: Parser<Input = <L as Parser>::Input>,
P: Parser<Input = <L as Parser>::Input>,
[src]
L: Parser,
R: Parser<Input = <L as Parser>::Input>,
P: Parser<Input = <L as Parser>::Input>,
type Input = <L as Parser>::Input
A type implementing the Stream
trait which is the specific type that is parsed. Read more
type Output = <Skip<With<L, P>, R> as Parser>::Output
The type which is returned when the parsing is successful.
fn parse_state(
&mut self,
input: State<Self::Input>
) -> ParseResult<Self::Output, Self::Input, <Self::Input as Stream>::Item>
&mut self,
input: State<Self::Input>
) -> ParseResult<Self::Output, Self::Input, <Self::Input as Stream>::Item>
Parses using the state input
by calling Stream::uncons one or more times On success returns Ok((value, new_state))
on failure it returns Err(error)
Read more
fn parse_lazy(
&mut self,
input: State<Self::Input>
) -> ParseResult<Self::Output, Self::Input, <Self::Input as Stream>::Item>
&mut self,
input: State<Self::Input>
) -> ParseResult<Self::Output, Self::Input, <Self::Input as Stream>::Item>
Specialized version of parse_state where the parser does not need to add an error to the ParseError
when it does not consume any input before encountering the error. Instead the error can be added later through the add_error
method Read more
fn add_error(&mut self, error: &mut ParseError<<Self::Input as Stream>::Item>)
Adds the first error that would normally be returned by this parser if it failed
fn parse(
&mut self,
input: Self::Input
) -> Result<(Self::Output, Self::Input), ParseError<<Self::Input as Stream>::Item>>
&mut self,
input: Self::Input
) -> Result<(Self::Output, Self::Input), ParseError<<Self::Input as Stream>::Item>>
Entrypoint of the parser Takes some input and tries to parse it returning a ParseResult
Read more