Struct memchr::memmem::FinderBuilder [−][src]
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]
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]
fn clone(&self) -> FinderBuilder[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for FinderBuilder[src]
impl Default for FinderBuilder[src]
fn default() -> FinderBuilder[src]
Auto Trait Implementations
impl RefUnwindSafe for FinderBuilder
impl Send for FinderBuilder
impl Sync for FinderBuilder
impl Unpin for FinderBuilder
impl UnwindSafe for FinderBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,