pub fn find(text: &[u8], pattern: &[u8]) -> Option<usize>Expand description
Convenience function for one-off searches.
If you’re doing multiple searches with the same pattern, create a
BitParallelSearcher instead to amortize setup costs.
§Example
use bit_parallel_search::find;
assert_eq!(find(b"hello world", b"world"), Some(6));