Lines Matching defs:search
2 This library provides heavily optimized routines for string search primitives.
12 * The [`memmem`] sub-module provides forward and reverse substring search
64 # Example: repeating a search for the same needle
67 measurable in some workloads. In cases where the same needle is used to search
92 Or similarly, why does this crate provide substring search routines when Rust's
96 fn search(haystack: &str, needle: &str) -> Option<usize> {
107 search through it and determine that it, in fact, does not occur?"
121 But what about substring search? This one is a bit more complicated. The
124 search routine on arbitrary bytes. The only substring search routine that
128 library substring search routine? Yes. This routine is faster on almost every
135 implementations of substring search. For `memchr`, all targets have
152 (e.g., `memchr[23]` and substring search) unconditionally use the