devela::_dep::memchr

Function memchr_iter

pub fn memchr_iter<'h>(needle: u8, haystack: &'h [u8]) -> Memchr<'h> 
Available on crate feature dep_memchr only.
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.