Lines Matching refs:find
30 memmem::find(haystack.as_bytes(), needle.as_bytes()).is_some()
37 move |h| finder.find(h.as_bytes()).is_some()
122 finder(needle.as_bytes()).find(haystack.as_bytes()).is_some()
129 move |h| finder.find(h.as_bytes()).is_some()
139 |h, n| finder(n).find(h),
223 bstr::ByteSlice::find(haystack.as_bytes(), needle.as_bytes())
231 move |h| finder.find(h.as_bytes()).is_some()
256 move |h, _| self.0.find(h),
711 fn find(haystack: &[u8], needle: &[u8]) -> Option<usize> {
728 find(haystack.as_bytes(), needle.as_bytes()).is_some()
744 find,
804 /// benchmarking "find all matches" for substring search implementations that
812 mut find: impl FnMut(&[u8], &[u8]) -> Option<usize> + 'a,
819 match find(&haystack[pos..], needle) {