Function length_count
fn length_count<I, E, F, G>(f: F, g: G) -> impl Parser<I, Output = crate::lib::std::vec::Vec<<G as Parser<I>>::Output>, Error = E>
where
I: Clone,
<F as Parser<I>>::Output: ToUsize,
F: Parser<I, Error = E>,
G: Parser<I, Error = E>,
E: ParseError<I>
Gets a number from the first parser, then applies the second parser that many times.
Arguments
fThe parser to apply to obtain the count.gThe parser to apply repeatedly.
# use ;
use u8;
use length_count;
use tag;
use map;
assert_eq!;
assert_eq!;