[][src]Function combine::parser::repeat::skip_many

pub fn skip_many<P>(p: P) -> SkipMany<P> where
    P: Parser

Parses p zero or more times ignoring the result.

NOTE: If p can succeed without consuming any input this may hang forever as skip_many will repeatedly use p to parse the same location in the input every time

let result = skip_many(digit())
    .parse("A");
assert_eq!(result, Ok(((), "A")));