Skip to main content

find_last

Function find_last 

Source
pub fn find_last<Nd>(input: &[u8], needles: Nd) -> Option<usize>
where Nd: Needles,
Expand description

Returns the index of the last byte in input that matches any of needles, or None if no byte matches.

Scans the entire input front-to-back, accumulating the rightmost match position using SIMD bitmask leading_zeros to find the last set bit in each chunk. The SIMD backends are the same as those used by skip_until.