Function subslice::find_str[][src]

pub fn find_str(text: &str, pattern: &str) -> Option<usize>

find_str finds the first ocurrence of pattern in the text.