Struct cuml_map::CumlTree[][src]

pub struct CumlTree<K, V> { /* fields omitted */ }

The CumlTree type. An unbounded mapping between ordered keys and cumulative values, represented as a red-black tree.

Methods

impl<K, V> CumlTree<K, V>
[src]

Create an empty CumlTree object.

Trait Implementations

impl<K, V> Drop for CumlTree<K, V>
[src]

Executes the destructor for this type. Read more

impl<K, V> CumlMap for CumlTree<K, V> where
    K: Add<Output = K> + Sub<Output = K> + Zero + Clone + Ord,
    V: Add<Output = V> + Sub<Output = V> + Zero + Clone + Ord
[src]

Type for the keys in this mapping.

Type for the values in this mapping.

Insert an entry into the mapping.

Get the cumulative value up to and including the specified key. Read more

Get the value at the specified key (not the cumulative value).

Get the first key at which the cumulative value equals or exceeds the specified value, if such a key exists. Note that if the result of this function is only defined if the cumulative value is non-decreasing. If you start putting negative values into your mappings, you will get strange results from this function. Read more

Auto Trait Implementations

impl<K, V> !Send for CumlTree<K, V>

impl<K, V> !Sync for CumlTree<K, V>