Struct memchr::memmem::FinderBuilder [−][src]
pub struct FinderBuilder { /* fields omitted */ }A builder for constructing non-default forward or reverse memmem finders.
A builder is primarily useful for configuring a substring searcher. Currently, the only configuration exposed is the ability to disable heuristic prefilters used to speed up certain searches.
Implementations
impl FinderBuilder[src]
impl FinderBuilder[src]pub fn new() -> FinderBuilder[src]
Create a new finder builder with default settings.
pub fn build_forward<'n, B: ?Sized + AsRef<[u8]>>(
&self,
needle: &'n B
) -> Finder<'n>[src]
&self,
needle: &'n B
) -> Finder<'n>
Build a forward finder using the given needle from the current settings.
pub fn build_reverse<'n, B: ?Sized + AsRef<[u8]>>(
&self,
needle: &'n B
) -> FinderRev<'n>[src]
&self,
needle: &'n B
) -> FinderRev<'n>
Build a reverse finder using the given needle from the current settings.
pub fn prefilter(&mut self, prefilter: Prefilter) -> &mut FinderBuilder[src]
Configure the prefilter setting for the finder.
See the documentation for Prefilter for more discussion on why
you might want to configure this.
Trait Implementations
impl Clone for FinderBuilder[src]
impl Clone for FinderBuilder[src]fn clone(&self) -> FinderBuilder[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for FinderBuilder[src]
impl Default for FinderBuilder[src]