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