Struct teardown_tree::IntervalTeardownTreeMap [] [src]

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

Methods

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

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

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

Trait Implementations

impl<Iv: Clone + Interval, V: Clone> Clone for IntervalTeardownTreeMap<Iv, V>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Iv: Interval + Copy, V: Copy> TeardownTreeRefill for IntervalTeardownTreeMap<Iv, V>
[src]

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

Formats the value using the given formatter.

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

Formats the value using the given formatter.