Struct teardown_tree::TeardownSet [] [src]

pub struct TeardownSet<T: Ord + Clone> { /* fields omitted */ }

Methods

impl<T: Ord + Clone> TeardownSet<T>
[src]

Creates a new TeardownSet with the given set of items. The items can be given in any order. Duplicates are supported.

Creates a new TeardownSet with the given set of items. Duplicates are supported. Note: the items are assumed to be sorted!

Returns true if the set contains the given item.

Executes a range query and feeds references to the matching items into sink.

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 set.

Trait Implementations

impl<T: Clone + Ord + Clone> Clone for TeardownSet<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + Ord + Clone> Debug for TeardownSet<T>
[src]

Formats the value using the given formatter.

impl<K: Ord + Clone + Copy> Refill for TeardownSet<K>
[src]

impl<T: Ord + Clone + Debug> Display for TeardownSet<T>
[src]

Formats the value using the given formatter. Read more

impl<T: Ord + Clone> IntoIterator for TeardownSet<T>
[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