Struct teardown_tree::TeardownMap [] [src]

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

Methods

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

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

Creates a new TeardownMap 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).

Creates an iterator into the map.

Trait Implementations

impl<K: Clone + Ord + Clone, V: Clone> Clone for TeardownMap<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 TeardownMap<K, V>
[src]

Formats the value using the given formatter.

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

Formats the value using the given formatter.

impl<K: Ord + Clone + Copy, V: Copy> Refill for TeardownMap<K, V>
[src]

impl<K: Ord + Clone, V> IntoIterator for TeardownMap<K, V>
[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