[−][src]Function combine::skip_count
pub fn skip_count<P>(count: usize, parser: P) -> SkipCount<P> where
<P::Input as StreamOnce>::Error: ParseError<<P::Input as StreamOnce>::Item, <P::Input as StreamOnce>::Range, <P::Input as StreamOnce>::Position>,
P: Parser,
Parses parser
from zero up to count
times skipping the output of parser
.
let mut parser = skip_count(2, token(b'a')); let result = parser.parse(&b"aaab"[..]); assert_eq!(result, Ok(((), &b"ab"[..])));