pub struct NaiveGapQueryIntervalTree<I, K, D> { /* private fields */ }

Implementations§

source§

impl<I, K, D> NaiveGapQueryIntervalTree<I, K, D>

source

pub fn new() -> Self

Trait Implementations§

source§

impl<I: Clone, K: Clone, D: Clone> Clone for NaiveGapQueryIntervalTree<I, K, D>

source§

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)

Performs copy-assignment from source. Read more
source§

impl<I: Debug, K: Debug, D: Debug> Debug for NaiveGapQueryIntervalTree<I, K, D>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<I, K, D> Default for NaiveGapQueryIntervalTree<I, K, D>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<I, K, D> GapQueryIntervalTree<I, K, D> for NaiveGapQueryIntervalTree<I, K, D>
where I: PointType, K: RangeType<I>, D: IdType,

source§

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)

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>,

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)

Append one interval tree with another by inserting all the intervals from other into self. Read more
source§

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,

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 more
source§

impl<I, K, D> PartialEq for NaiveGapQueryIntervalTree<I, K, D>
where I: PartialEq, K: PartialEq, D: IdType,

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl<I, K, D> RefUnwindSafe for NaiveGapQueryIntervalTree<I, K, D>

§

impl<I, K, D> Send for NaiveGapQueryIntervalTree<I, K, D>
where D: Send, I: Send, K: Send,

§

impl<I, K, D> Sync for NaiveGapQueryIntervalTree<I, K, D>
where D: Sync, I: Sync, K: Sync,

§

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.