find_str

Function find_str 

Source
pub fn find_str(s: &str, search: &str) -> Option<usize>
Expand description

Find the position of a substring in a string

§Arguments

  • s - The string to search in
  • search - The substring to find

§Returns

The position of the substring if found, None otherwise