Struct parser_combinators::combinator::SepBy
[−]
[src]
pub struct SepBy<F, P, S> { // some fields omitted }
Trait Implementations
impl<F: Clone, P: Clone, S: Clone> Clone for SepBy<F, P, S>
[src]
fn clone(&self) -> SepBy<F, P, S>
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<F, P, S> Parser for SepBy<F, P, S> where F: FromIterator<P::Output>, P: Parser, S: Parser<Input=P::Input>
[src]
type Input = P::Input
A type implementing the Stream
trait which is the specific type that is parsed. Read more
type Output = F
The type which is returned when the parsing is successful.
fn parse_state(&mut self, input: State<P::Input>) -> ParseResult<F, P::Input>
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(&mut self, input: Self::Input) -> Result<(Self::Output, Self::Input), ParseError>
Entrypoint of the parser Takes some input and tries to parse it returning a ParseResult
Read more