Macro nom::is_not [−][src]
macro_rules! is_not {
($input : expr, $arr : expr) => { ... };
}
Expand description
is_not!(&[T:AsBytes]) => &[T] -> IResult<&[T], &[T]>
returns the longest list of bytes that do not appear in the provided array
Example
named!( not_space, is_not!( " \t\r\n" ) );
let r = not_space(&b"abcdefgh\nijkl"[..]);
assert_eq!(r, Ok((&b"\nijkl"[..], &b"abcdefgh"[..])));