Struct frequency_btreemap::BTreeMapFrequency [] [src]

pub struct BTreeMapFrequency<T, N = usize> where
    T: Ord,
    N: Num
{ /* fields omitted */ }

A frequency counter backed by a BTreeMap.

Methods

impl<T, N> BTreeMapFrequency<T, N> where
    T: Ord,
    N: Num
[src]

Creates an empty BTreeMapFrequency, a frequency counter backed by a BTreeMap.

Returns the number of elements that have been counted.

Returns true if the counter contains no elements.

Trait Implementations

impl<'t, T, N> Frequency<'t, T> for BTreeMapFrequency<T, N> where
    T: 't + Ord,
    N: 't + Num + Clone
[src]

The type used to record counts.

The type of an iterator over item-count pairs.

The type of an iterator over items.

The type of an iterator over counts.

Returns the count of an item.

Increments the count for an item.

An iterator visiting all key-value pairs. Iterator element type is (&'t T, &'t usize). Read more

An iterator visiting all keys in arbitrary order. Iterator element type is &'t T. Read more

An iterator visiting all counts in arbitrary order. Iterator element type is &'t usize. Read more

impl<T, N> Default for BTreeMapFrequency<T, N> where
    T: Ord,
    N: Num
[src]

Creates an empty BTreeMapFrequency<T, V, S>, a frequency counter backed by a BTreeMap with the Default value for the hasher.

impl<T, N> Extend<T> for BTreeMapFrequency<T, N> where
    T: Ord,
    N: Num + Clone
[src]

Extends a collection with the contents of an iterator. Read more

impl<T, N> FromIterator<T> for BTreeMapFrequency<T, N> where
    T: Ord,
    N: Num + Clone
[src]

Creates a value from an iterator. Read more

impl<'t, T, N> IntoIterator for &'t BTreeMapFrequency<T, N> where
    T: 't + Ord,
    N: 't + Num + Clone
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl<T, N> AsRef<BTreeMap<T, N>> for BTreeMapFrequency<T, N> where
    T: Ord,
    N: Num
[src]

Performs the conversion.

impl<T, N> AsMut<BTreeMap<T, N>> for BTreeMapFrequency<T, N> where
    T: Ord,
    N: Num
[src]

Performs the conversion.