Function combine::combinator::count
[−]
[src]
pub fn count<F, P>(count: usize, parser: P) -> Count<F, P> where P: Parser, F: FromIterator<P::Output>
Extract one token and succeeds if it is part of tokens
.
let result = many(none_of("abc".chars())) .parse("edc"); assert_eq!(result, Ok((String::from("ed"), "c")));