Trait naive_opt::SearchIn [−][src]
search in the haystack
return index of the haystack, if it found the needle. Otherwise return None.
Required methods
fn search_in(&self, haystack: &'a str) -> Option<usize>[src]
search self in the haystack.
return index of the haystack, if it found self. Otherwise return None.
fn rsearch_in(&self, haystack: &'a str) -> Option<usize>[src]
reverse search self in the haystack.
return index of the haystack, if it found self. Otherwise return None.
fn len(&self) -> usize[src]
return the length of self
Provided methods
fn is_empty(&self) -> bool[src]
true if a length of 0.
fn includes_in(&self, haystack: &'a str) -> bool[src]
includes self in the haystack.
returns true if the given pattern matches a sub-slice of this string slice. returns false if it does not.