iter.rs
SHA-2565949fd42b266d3edebf133172c74700d1c0249bdd26c203bcfd1409583e7b502
Malecule∅
Evidence
1use {memchr, memchr2, memchr3, memrchr, memrchr2, memrchr3};
2
3macro_rules! iter_next {
4 // Common code for the memchr iterators:
5 // update haystack and position and produce the index
6 //
7 // self: &mut Self where Self is the iterator
8 // search_result: Option<usize> which is the result of the corresponding
9 // m …
42:6… 'a> Memchr<'a> {
43 /// Creates a new iterator that yields all positions of needle in haystack.
44 #[inline]
45 pub fn new(needle: u8, haystack: …
134:11… eate a new `Memchr3` that's initialized to zero with a haystack
135 #[inline]
136 pub fn new(
137 needle1: u8,
138 needle2: u8,
139 need …