memchr

Function memchr_iter

Source
pub fn memchr_iter<'h>(needle: u8, haystack: &'h [u8]) -> Memchr<'h> 
Expand description

Returns an iterator over all occurrences of the needle in a haystack.

The iterator returned implements DoubleEndedIterator. This means it can also be used to find occurrences in reverse order.