Skip to main content

memchr

Function memchr 

Source
fn memchr(haystack: &[u8], from: usize, needle: u8) -> Option<usize>
Expand description

Find the first byte equal to needle in haystack[from..]. Returns the absolute index, or None.