pub trait Alt<I, O, E> {
    fn choice(&self, input: I) -> IResult<I, O, E>;
}
Expand description

helper trait for the alt() combinator

this trait is implemented for tuples of up to 21 elements

Required methods

tests each parser in the tuple and returns the result of the first one that succeeds

Implementations on Foreign Types

Implementors