Trait nom::branch::Alt

source ·
pub trait Alt<I, O, E> {
    fn choice(&mut 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§