Macro peel_ip::prelude::tag
[−]
macro_rules! tag { ( $ i : expr , $ tag : expr ) => { ... }; }
tag!(&[T]: nom::AsBytes) => &[T] -> IResult<&[T], &[T]>
declares a byte array as a suite to recognize
consumes the recognized characters
named!(x, tag!("abcd")); let r = x(&b"abcdefgh"[..]); assert_eq!(r, Done(&b"efgh"[..], &b"abcd"[..]));