Function bparse::noneof

source ·
pub const fn noneof(exclusions: &str) -> NoneOf
Expand description

Inverse of oneof

§Example

use bparse::{Pattern, noneof};

let nondigits = noneof("0123456789");

assert_eq!(nondigits.test(b"A").unwrap().0, b"A");
assert_eq!(nondigits.test(b"3"), None);