Function combine::skip_many1[][src]

pub fn skip_many1<Input, P>(p: P) -> SkipMany1<Input, P> where
    <Input as StreamOnce>::Error: ParseError<<Input as StreamOnce>::Token, <Input as StreamOnce>::Range, <Input as StreamOnce>::Position>,
    Input: Stream,
    P: Parser<Input>, 
Expand description

Parses p one or more times ignoring the result.

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

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