Struct FinderBuilder
struct FinderBuilder { ... }
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
fn new() -> FinderBuilderCreate a new finder builder with default settings.
fn build_forward<'n, B: ?Sized + AsRef<[u8]>>(self: &Self, needle: &'n B) -> Finder<'n>Build a forward finder using the given needle from the current settings.
fn build_forward_with_ranker<'n, R: HeuristicFrequencyRank, B: ?Sized + AsRef<[u8]>>(self: &Self, ranker: R, needle: &'n B) -> Finder<'n>Build a forward finder using the given needle and a custom heuristic for determining the frequency of a given byte in the dataset. See
HeuristicFrequencyRankfor more details.fn build_reverse<'n, B: ?Sized + AsRef<[u8]>>(self: &Self, needle: &'n B) -> FinderRev<'n>Build a reverse finder using the given needle from the current settings.
fn prefilter(self: &mut Self, prefilter: Prefilter) -> &mut FinderBuilderConfigure the prefilter setting for the finder.
See the documentation for
Prefilterfor more discussion on why you might want to configure this.
impl Clone for FinderBuilder
fn clone(self: &Self) -> FinderBuilder
impl Debug for FinderBuilder
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Default for FinderBuilder
fn default() -> FinderBuilder
impl Freeze for FinderBuilder
impl RefUnwindSafe for FinderBuilder
impl Send for FinderBuilder
impl Sync for FinderBuilder
impl Unpin for FinderBuilder
impl UnwindSafe for FinderBuilder
impl<T> Any for FinderBuilder
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for FinderBuilder
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for FinderBuilder
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for FinderBuilder
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for FinderBuilder
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for FinderBuilder
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for FinderBuilder
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for FinderBuilder
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for FinderBuilder
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>