pub trait CharCounts {
    fn char_counts(&self) -> HashMap<char, i32>;
}
Expand description

A trait for counting the number of occurrences of each character in a string.

Required Methods§

Returns a HashMap containing the number of occurrences of each character in the string.

Implementations on Foreign Types§

Implementors§