Function combine::combinator::not_followed_by
[−]
[src]
pub fn not_followed_by<P>(parser: P) -> NotFollowedBy<P> where
P: Parser,
P::Output: Display,
Succeeds only if parser
fails.
Never consumes any input.
let result = string("let") .skip(not_followed_by(alpha_num())) .parse("letx") .map(|x| x.0); assert!(result.is_err());