IntoCounter

Trait IntoCounter 

Source
pub trait IntoCounter<T: Hash + Eq> {
    // Required method
    fn counter(self) -> Counter<T>;
}
Expand description

Tally the occurrences of elements in an iterator

Required Methods§

Source

fn counter(self) -> Counter<T>

Implementors§

Source§

impl<T: Eq + Hash + Ord, I: Iterator<Item = T>> IntoCounter<T> for I