pub fn not<T, P>(pattern: P) -> Not<P>where
P: Pattern<T>,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.