Trait string_patterns::MatchOccurrences
source · pub trait MatchOccurrences {
// Required method
fn find_matched_indices(&self, pat: &str) -> Vec<usize>;
}
Expand description
Return the indices of all ocurrences of a string
Required Methods§
sourcefn find_matched_indices(&self, pat: &str) -> Vec<usize>
fn find_matched_indices(&self, pat: &str) -> Vec<usize>
Return the indices only of all matches of a given string pattern (not a regular expression) Builds on match_indices in the Rust standard library