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
.
Structs
Fastchr |
An iterator for byte positions using |
FastchrSplit |
An iterator of subslices separated by a specified byte. The separator byte is not included in the subslices. |
Functions
fastchr |
Returns the index corresponding to the first occurrence of |