(self, haystack: &'t str)
| 13 | type Searcher = RegexSearcher<'r, 't>; |
| 14 | |
| 15 | fn into_searcher(self, haystack: &'t str) -> RegexSearcher<'r, 't> { |
| 16 | RegexSearcher { |
| 17 | haystack: haystack, |
| 18 | it: self.find_iter(haystack), |
| 19 | last_step_end: 0, |
| 20 | next_match: None, |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | unsafe impl<'r, 't> Searcher<'t> for RegexSearcher<'r, 't> { |