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§

source

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

Implementations on Foreign Types§

source§

impl MatchOccurrences for str

source§

fn find_matched_indices(&self, pat: &str) -> Vec<usize>

Return the indices only of all matches of a given regular expression

Implementors§