Function last_index_of
Source pub fn last_index_of(str: &String, search: &String) -> i32
Expand description
Finds the index of the last occurrence of the specified substring.
§Arguments
str
- The String
to search within.
search
- The String
to search for.
§Returns
The index of the last occurrence of the specified substring, or -1
if the substring is not found.