Function memchr::memchr2 [−][src]
pub fn memchr2(needle1: u8, needle2: u8, haystack: &[u8]) -> Option<usize>
Like memchr
, but searches for two bytes instead of one.
pub fn memchr2(needle1: u8, needle2: u8, haystack: &[u8]) -> Option<usize>
Like memchr
, but searches for two bytes instead of one.