Trait combine::combinator::ChoiceParser [] [src]

pub trait ChoiceParser {
    type Input: Stream;
    type Output;
    fn parse_choice(
        &mut self,
        input: Self::Input
    ) -> ConsumedResult<Self::Output, Self::Input>;
fn add_error_choice(
        &mut self,
        error: &mut Tracked<StreamError<Self::Input>>
    ); }

ChoiceParser represents a parser which may parse one of several different choices depending on the input.

This is an internal trait used to overload the choice function.

Associated Types

Required Methods

Implementors