Skip to main content

find_substr

Function find_substr 

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

Find the first occurrence of needle in haystack[from..]. Returns the absolute index in haystack, or None.