Macro nom::none_of[][src]

macro_rules! none_of {
    ($i:expr, $inp: expr) => { ... };
}

matches anything but the provided characters

Example

named!(no_letter_a<char>, none_of!(&b"abc"[..]));
assert_eq!(no_letter_a(b"123"), Ok((&b"23"[..], '1')));

named!(err_on_single_quote<char>, none_of!(&b"'"[..]));
assert_eq!(err_on_single_quote(b"'jiosfe"), Err(Err::Error(error_position!(&b"'jiosfe"[..], ErrorKind::NoneOf))));