Struct teardown_tree::IntervalTeardownTreeSet [] [src]

pub struct IntervalTeardownTreeSet<Iv: Interval> { /* fields omitted */ }

Methods

impl<Iv: Interval> IntervalTeardownTreeSet<Iv>
[src]

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

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

Returns true if the set contains the given item.

Executes an overlap query.

Deletes the given interval from the tree and returns true (or false if it was not found).

Deletes all intervals that overlap with query from the tree and 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> Clone for IntervalTeardownTreeSet<Iv>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Iv: Interval + Copy> TeardownTreeRefill for IntervalTeardownTreeSet<Iv>
[src]

impl<Iv: Interval + Debug> Debug for IntervalTeardownTreeSet<Iv> where Iv::K: Debug
[src]

Formats the value using the given formatter.

impl<Iv: Interval> Display for IntervalTeardownTreeSet<Iv> where Iv::K: Debug
[src]

Formats the value using the given formatter.