Struct aho_corasick::util::prefilter::Builder
source · pub(crate) struct Builder {
count: usize,
ascii_case_insensitive: bool,
start_bytes: StartBytesBuilder,
rare_bytes: RareBytesBuilder,
memmem: MemmemBuilder,
packed: Option<Builder>,
enabled: bool,
}
Expand description
A builder for constructing the best possible prefilter. When constructed, this builder will heuristically select the best prefilter it can build, if any, and discard the rest.
Fields§
§count: usize
§ascii_case_insensitive: bool
§start_bytes: StartBytesBuilder
§rare_bytes: RareBytesBuilder
§memmem: MemmemBuilder
§packed: Option<Builder>
§enabled: bool
Implementations§
source§impl Builder
impl Builder
sourcepub(crate) fn new(kind: MatchKind) -> Builder
pub(crate) fn new(kind: MatchKind) -> Builder
Create a new builder for constructing the best possible prefilter.
sourcepub(crate) fn ascii_case_insensitive(self, yes: bool) -> Builder
pub(crate) fn ascii_case_insensitive(self, yes: bool) -> Builder
Enable ASCII case insensitivity. When set, byte strings added to this builder will be interpreted without respect to ASCII case.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more