Struct teardown_tree::TeardownTreeMap [] [src]

pub struct TeardownTreeMap<K: Ord + Clone, V> { /* fields omitted */ }

Methods

impl<K: Ord + Clone, V> TeardownTreeMap<K, V>
[src]

Creates a new TeardownTreeMap with the given set of items. The items can be given in any order. Duplicate keys are supported.

Creates a new TeardownTreeMap with the given set of items. Duplicate keys are supported. Note: the items are assumed to be sorted!

Finds the item with the given key and returns it (or None).

Returns true if the map contains the given key.

Executes a range query.

Deletes the item with the given key from the tree and returns it (or None).

Deletes all items inside range from the tree and feeds them into sink. The items are returned in order.

Deletes all items inside range that match filter from the tree and feeds them into sink. The items are returned in order.

Deletes all items inside range from the tree and feeds them into sink.

Deletes all items inside range that match filter from the tree and feeds them into sink. The items are returned in order.

Returns the number of items in this tree.

Removes all items from the tree (the items are dropped, but the internal storage is not).

Trait Implementations

impl<K: Clone + Ord + Clone, V: Clone> Clone for TeardownTreeMap<K, V>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<K: Ord + Clone + Debug, V> Debug for TeardownTreeMap<K, V>
[src]

Formats the value using the given formatter.

impl<K: Ord + Clone + Debug, V> Display for TeardownTreeMap<K, V>
[src]

Formats the value using the given formatter.

impl<K: Ord + Clone + Copy, V: Copy> TeardownTreeRefill for TeardownTreeMap<K, V>
[src]