pub fn not<P>(pattern: P) -> Not<P>where
P: Pattern,Expand description
Returns a new pattern that matches only if pattern does not match.
This pattern returns Some(0) if the underlying pattern did not match which makes it function as a negative lookahead.