Function pair
fn pair<I, O1, O2, E: ParseError<I>, F, G>(first: F, second: G) -> impl Parser<I, Output = (O1, O2), Error = E>
where
F: Parser<I, Output = O1, Error = E>,
G: Parser<I, Output = O2, Error = E>
Gets an object from the first parser, then gets another object from the second parser.
Arguments
firstThe first parser to apply.secondThe second parser to apply.
Example
use pair;
use tag;
use ;
let mut parser = pair;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;