Struct teardown_tree::TeardownTree [] [src]

pub struct TeardownTree<T: Item> {
    pub traversal_stack: UnsafeStack<usize>,
    pub delete_range_cache: Option<DeleteRangeCache>,
    // some fields omitted
}

Fields

Methods

impl<T: Item> TeardownTree<T>
[src]

Constructs a new TeardownTree Note: the argument must be sorted!

Deletes all items inside the closed [from,to] range from the tree and stores them in the output Vec. The items are returned in order.

Deletes all items inside the closed [from,to] range from the tree and stores them in the output Vec.

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

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

Trait Implementations

impl<T: Copy + Item> TeardownTreeRefill<T> for TeardownTree<T>
[src]

impl<T: Item> Clone for TeardownTree<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Item> Drop for TeardownTree<T>
[src]

A method called when the value goes out of scope. Read more

impl<K: Ord + Debug, T: Item<Key=K>> Debug for TeardownTree<T>
[src]

Formats the value using the given formatter.

impl<K: Ord + Debug, T: Item<Key=K>> Display for TeardownTree<T>
[src]

Formats the value using the given formatter.