Structs

  • Builder 🔒
    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.
  • Memmem 🔒
    A type that wraps a SIMD accelerated single substring search from the memchr crate for use as a prefilter.
  • A builder for constructing a prefilter that uses memmem.
  • Packed 🔒
    A type that wraps a packed searcher and implements the Prefilter interface.
  • A prefilter for accelerating a search.
  • Offsets associated with an occurrence of a “rare” byte in any of the patterns used to construct a single Aho-Corasick automaton.
  • A set of byte offsets, keyed by byte.
  • A builder for constructing a rare byte prefilter.
  • A prefilter for scanning for a single “rare” byte.
  • A prefilter for scanning for three “rare” bytes.
  • A prefilter for scanning for two “rare” bytes.
  • A builder for constructing a starting byte prefilter.
  • A prefilter for scanning for a single starting byte.
  • A prefilter for scanning for three starting bytes.
  • A prefilter for scanning for two starting bytes.

Enums

  • A candidate is the result of running a prefilter on a haystack at a particular position.

Traits

  • PrefilterI 🔒
    A prefilter describes the behavior of fast literal scanners for quickly skipping past bytes in the haystack that we know cannot possibly participate in a match.

Functions

  • freq_rank 🔒
    Return the frequency rank of the given byte. The higher the rank, the more common the byte (heuristically speaking).
  • If the given byte is an ASCII letter, then return it in the opposite case. e.g., Given b'A', this returns b'a', and given b'a', this returns b'A'. If a non-ASCII letter is given, then the given byte is returned.