Overview of memchr
masterThe memchr library provides highly optimized routines for string search primitives. It operates on &[u8] (byte slices) without regard to encoding, making it suitable for both UTF-8 and arbitrary byte sequences.
Key features include:
- Top-level module: Routines for searching for 1, 2, or 3 bytes in both forward and reverse directions. When searching for multiple bytes, a match is found if the byte at a position matches any of the target bytes.
memmemsub-module: Provides forward and reverse substring search routines.