Lines Matching refs:searcher

53 It may be possible for the overhead of constructing a substring searcher to be
324 let prestate = finder.searcher.prefilter_state();
356 .searcher
435 /// A single substring searcher fixed to a particular needle.
438 /// searcher that can be used to search haystacks without the overhead of
439 /// constructing the searcher in the first place. This is a somewhat niche
443 /// observe searcher construction time in a profile.
450 searcher: Searcher<'n>,
485 self.searcher.find(&mut self.searcher.prefilter_state(), haystack)
532 Finder { searcher: self.searcher.into_owned() }
547 Finder { searcher: self.searcher.as_ref() }
558 self.searcher.needle()
562 /// A single substring reverse searcher fixed to a particular needle.
565 /// searcher that can be used to search haystacks without the overhead of
566 /// constructing the searcher in the first place. This is a somewhat niche
570 /// meaningfully observe searcher construction time in a profile.
577 searcher: SearcherRev<'n>,
615 self.searcher.rfind(haystack.as_ref())
663 FinderRev { searcher: self.searcher.into_owned() }
678 FinderRev { searcher: self.searcher.as_ref() }
689 self.searcher.needle()
695 /// A builder is primarily useful for configuring a substring searcher.
715 Finder { searcher: Searcher::new(self.config, needle.as_ref()) }
724 FinderRev { searcher: SearcherRev::new(needle.as_ref()) }
737 /// The internal implementation of a forward substring searcher.
739 /// The reality is that this is a "meta" searcher. Namely, depending on a
856 /// Return a fresh prefilter state that can be used with this searcher.
857 /// A prefilter state is used to track the effectiveness of a searcher's
864 /// even if this searcher does not have a prefilter enabled.
1021 /// The internal implementation of a reverse substring searcher.
1023 /// See the forward searcher docs for more details. Currently, the reverse
1024 /// searcher is considerably simpler since it lacks prefilter support. This