BurntSushi / memchr

Optimized string search routines for Rust.
The Unlicense
799 stars 97 forks source link

unsafe impl Sync+Send #134

Closed conradludgate closed 10 months ago

conradludgate commented 10 months ago

Fixes #133

The pointers in Iter seem to be simply an optimization over using &'h [u8] which is Send+Sync. I couldn't find a more straightforward solution than just implementing Send+Sync on Iter.

If my safety comments aren't sufficient, I can improve them