Searched refs:peek_tag (Results 1 – 2 of 2) sorted by relevance
224 fn peek_tag(i: &[u8]) -> IResult<&[u8], &[u8]> { in peek_test() function228 assert_eq!(peek_tag(&b"abcdef"[..]), Ok((&b"abcdef"[..], &b"abcd"[..]))); in peek_test()229 assert_eq!(peek_tag(&b"ab"[..]), Err(Err::Incomplete(Needed::new(2)))); in peek_test()231 peek_tag(&b"xxx"[..]), in peek_test()
274 fn peek_tag(input: ParseStream, tag: &str) -> bool { in peek_tag() function286 if peek_tag(input, "full") { in full()317 if peek_tag(input, "no_visit") { in no_visit()