Home
last modified time | relevance | path

Searched refs:peek_tag (Results 1 – 2 of 2) sorted by relevance

/third_party/rust/crates/nom/src/combinator/
Dtests.rs224 fn peek_tag(i: &[u8]) -> IResult<&[u8], &[u8]> { in peek_test() function
228 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()
/third_party/rust/crates/syn/codegen/src/
Dparse.rs274 fn peek_tag(input: ParseStream, tag: &str) -> bool { in peek_tag() function
286 if peek_tag(input, "full") { in full()
317 if peek_tag(input, "no_visit") { in no_visit()