[−][src]Function combine::parser::combinator::not_followed_by
pub fn not_followed_by<P>(parser: P) -> NotFollowedBy<P> where
P: Parser,
P::Output: Into<Info<<P::Input as StreamOnce>::Item, <P::Input as StreamOnce>::Range>>,
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());