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]

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]

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]

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 Debug for FinderBuilder[src]

impl Default for FinderBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.