Function lrs::util::memrchr

Returns the last occurrence of a byte in a byte slice if any.

Syntax

fn memrchr(s: &[u8], c: u8) -> Option<usize>

Arguments

NameDescription
s

The slice to be searched.

c

The byte to be searched for.

Return value

Returns the last occurrence of the byte in the slice.