Function permutation
fn permutation<I: Clone, E: ParseError<I>, List>(list: List) -> Permutation<List, E>
Applies a list of parsers in any order.
Permutation will succeed if all of the child parsers succeeded. It takes as argument a tuple of parsers, and returns a tuple of the parser results.
# use ;
use ;
use permutation;
#
The parsers are applied greedily: if there are multiple unapplied parsers that could parse the next slice of input, the first one is used.
# use ;
use permutation;
use ;
// anychar parses 'b', then char('a') parses 'a'
assert_eq!;
// anychar parses 'a', then char('a') fails on 'b',
// even though char('a') followed by anychar would succeed
assert_eq!;