Function naive_opt::string_search_bytes [−][src]
pub fn string_search_bytes(haystack: &[u8], needle: &[u8]) -> Option<usize>
search the needle in the haystack bytes
return index of the haystack, if it found the needle. Otherwise return None.