Struct teardown_tree::IntervalTeardownSet [] [src]

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

Methods

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

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

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

Creates an iterator into the set.

Trait Implementations

impl<Iv: Clone + Interval> Clone for IntervalTeardownSet<Iv>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<Iv: Interval + Copy> Refill for IntervalTeardownSet<Iv>
[src]

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

Formats the value using the given formatter.

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

Formats the value using the given formatter. Read more

impl<Iv: Interval> IntoIterator for IntervalTeardownSet<Iv>
[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