Struct teardown_tree::IntervalTeardownMap [] [src]

pub struct IntervalTeardownMap<Iv: Interval, V> { /* fields omitted */ }

Methods

impl<Iv: Interval, V> IntervalTeardownMap<Iv, V>
[src]

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

Creates a new IntervalTeardownMap with the given set of intervals. Duplicates are supported. Note: the items are assumed to be sorted with respect to Interval::cmp()!

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

Returns true if the map contains the given key.

Executes an overlap query.

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

Deletes all intervals that overlap with query from the tree and feeds them into sink. The items are returned in order.

Deletes all intervals that overlap with query and match the 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<Iv: Clone + Interval, V: Clone> Clone for IntervalTeardownMap<Iv, V>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Iv: Interval + Copy, V: Copy> Refill for IntervalTeardownMap<Iv, V>
[src]

impl<Iv: Interval + Debug, V> Debug for IntervalTeardownMap<Iv, V> where
    Iv::K: Debug
[src]

Formats the value using the given formatter.

impl<Iv: Interval, V> Display for IntervalTeardownMap<Iv, V> where
    Iv::K: Debug
[src]

Formats the value using the given formatter. Read more

impl<Iv: Interval, V> IntoIterator for IntervalTeardownMap<Iv, 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