Struct parser_combinators::combinator::Message [] [src]

pub struct Message<P>(_, _)
where
    P: Parser
;

Trait Implementations

impl<P: Clone> Clone for Message<P> where
    P: Parser,
    P::Input: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<I, P> Parser for Message<P> where
    I: Stream,
    P: Parser<Input = I>, 
[src]

A type implementing the Stream trait which is the specific type that is parsed. Read more

The type which is returned when the parsing is successful.

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

Adds the first error that would normally be returned by this parser if it failed

Entrypoint of the parser Takes some input and tries to parse it returning a ParseResult Read more

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