Struct teardown_tree::TeardownTreeSet [] [src]

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

Methods

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

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

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

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

impl<K: Ord + Clone + Copy> TeardownTreeRefill for TeardownTreeSet<K>
[src]

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

Formats the value using the given formatter.