pub struct NaiveGapQueryIntervalTree<I, K, D> { /* private fields */ }
Implementations§
source§impl<I, K, D> NaiveGapQueryIntervalTree<I, K, D>
impl<I, K, D> NaiveGapQueryIntervalTree<I, K, D>
Trait Implementations§
source§impl<I: Clone, K: Clone, D: Clone> Clone for NaiveGapQueryIntervalTree<I, K, D>
impl<I: Clone, K: Clone, D: Clone> Clone for NaiveGapQueryIntervalTree<I, K, D>
source§fn clone(&self) -> NaiveGapQueryIntervalTree<I, K, D>
fn clone(&self) -> NaiveGapQueryIntervalTree<I, K, D>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<I, K, D> Default for NaiveGapQueryIntervalTree<I, K, D>
impl<I, K, D> Default for NaiveGapQueryIntervalTree<I, K, D>
source§impl<I, K, D> GapQueryIntervalTree<I, K, D> for NaiveGapQueryIntervalTree<I, K, D>
impl<I, K, D> GapQueryIntervalTree<I, K, D> for NaiveGapQueryIntervalTree<I, K, D>
source§fn gap_query<Q>(&self, with_identifier: Option<D>, interval: Q) -> Vec<K>where
Q: RangeType<I>,
fn gap_query<Q>(&self, with_identifier: Option<D>, interval: Q) -> Vec<K>where
Q: RangeType<I>,
Gets the maximally-sized gaps that overlap the given interval
for the given identifier if one is given.
source§fn insert(&mut self, identifiers: BTreeSet<D>, interval: K)
fn insert(&mut self, identifiers: BTreeSet<D>, interval: K)
Inserts an interval into the collection for the given
identifiers.
source§fn cut<Q>(&mut self, with_identifiers: Option<BTreeSet<D>>, interval: Q)where
Q: RangeType<I>,
fn cut<Q>(&mut self, with_identifiers: Option<BTreeSet<D>>, interval: Q)where
Q: RangeType<I>,
Cuts an interval from the collection for the given
identifiers, if no identifiers are given all identifiers are
cut.
source§fn append(&mut self, other: &mut Self)
fn append(&mut self, other: &mut Self)
Append one interval tree with another by inserting all the
intervals from
other
into self
. Read moresource§fn identifiers_at_point(&self, at_point: I) -> BTreeSet<D>
fn identifiers_at_point(&self, at_point: I) -> BTreeSet<D>
Get all identifiers which have an interval overlapping the
given point. Read more
source§fn gap_query_at_point(
&self,
with_identifier: Option<D>,
at_point: I
) -> Option<K>where
I: PointType,
fn gap_query_at_point(
&self,
with_identifier: Option<D>,
at_point: I
) -> Option<K>where
I: PointType,
A convenience method for getting the maximally-sized gap at a
specific point for the given identifier if one is given, this
is equivalent to calling.
gap_query()
with a point
interval. Read moreAuto Trait Implementations§
impl<I, K, D> RefUnwindSafe for NaiveGapQueryIntervalTree<I, K, D>
impl<I, K, D> Send for NaiveGapQueryIntervalTree<I, K, D>
impl<I, K, D> Sync for NaiveGapQueryIntervalTree<I, K, D>
impl<I, K, D> Unpin for NaiveGapQueryIntervalTree<I, K, D>
impl<I, K, D> UnwindSafe for NaiveGapQueryIntervalTree<I, K, D>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more