Crate fastchr[][src]

This crate provides one function: fastchr, which very quickly finds the first occurrence of a given byte in a slice. fastchr is implemented using SIMD intrinsics and runtime CPU feature detection so it will always use the fastest method available on a platform. If SIMD features are not available, fastchr falls back to using memchr.



An iterator for byte positions using fastchr.


An iterator of subslices separated by a specified byte. The separator byte is not included in the subslices.



Returns the index corresponding to the first occurrence of needle in haystack, or None if one is not found.