[][src]Struct bio::data_structures::interval_tree::ArrayBackedIntervalTree

pub struct ArrayBackedIntervalTree<N: Ord + Clone + Copy, D> { /* fields omitted */ }

Implementations

impl<N: Ord + Clone + Copy, D: Clone> ArrayBackedIntervalTree<N, D>[src]

pub fn new() -> Self[src]

pub fn from_iter<I: Iterator<Item = (V, D)>, V>(iter: I) -> Self where
    V: Into<Interval<N>>, 
[src]

pub fn insert<I: Into<Interval<N>>>(&mut self, interval: I, data: D)[src]

pub fn index(&mut self)[src]

pub fn find<I: Into<Interval<N>>>(&self, interval: I) -> Vec<Entry<N, D>>[src]

Find overlapping intervals in the index. Returns a vector of entries, consisting of the interval and its associated data.

Arguments

  • interval - The interval for which overlaps are to be found in the index. Can also be a Range.

Panics

Panics if this IITree instance has not been indexed yet.

pub fn find_into<'b, 'a: 'b, I: Into<Interval<N>>>(
    &'a self,
    interval: I,
    results: &'b mut Vec<Entry<'a, N, D>>
)
[src]

Find overlapping intervals in the index

Arguments

  • interval - The interval for which overlaps are to be found in the index. Can also be a Range.
  • results - A reusable buffer vector for storing the results.

Panics

Panics if this IITree instance has not been indexed yet.

Trait Implementations

impl<N: Ord + Clone + Copy, D> Default for ArrayBackedIntervalTree<N, D>[src]

Auto Trait Implementations

impl<N, D> RefUnwindSafe for ArrayBackedIntervalTree<N, D> where
    D: RefUnwindSafe,
    N: RefUnwindSafe

impl<N, D> Send for ArrayBackedIntervalTree<N, D> where
    D: Send,
    N: Send

impl<N, D> Sync for ArrayBackedIntervalTree<N, D> where
    D: Sync,
    N: Sync

impl<N, D> Unpin for ArrayBackedIntervalTree<N, D> where
    D: Unpin,
    N: Unpin

impl<N, D> UnwindSafe for ArrayBackedIntervalTree<N, D> where
    D: UnwindSafe,
    N: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,