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

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

An interval tree for storing intervals with data

Methods

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

pub fn new() -> Self[src]

Creates a new empty IntervalTree

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

Inserts an Interval into the tree and associates it with data

Important traits for IntervalTreeIterator<'a, N, D>
pub fn find<I: Into<Interval<N>>>(
    &self,
    interval: I
) -> IntervalTreeIterator<N, D>
[src]

Uses the provided Interval to find overlapping intervals in the tree and returns an IntervalTreeIterator

Important traits for IntervalTreeIteratorMut<'a, N, D>
pub fn find_mut<I: Into<Interval<N>>>(
    &mut self,
    interval: I
) -> IntervalTreeIteratorMut<N, D>
[src]

Uses the provided Interval to find overlapping intervals in the tree and returns an IntervalTreeIteratorMut that allows mutable access to the data

Trait Implementations

impl<N: Clone + Ord, D: Clone> Clone for IntervalTree<N, D>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

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

impl<N: Debug + Ord + Clone, D: Debug> Debug for IntervalTree<N, D>[src]

impl<N: Clone + Ord, D, R: Into<Interval<N>>> FromIterator<(R, D)> for IntervalTree<N, D>[src]

impl<N: Ord + Clone, D> Serialize for IntervalTree<N, D> where
    N: Serialize,
    D: Serialize
[src]

impl<'de, N: Ord + Clone, D> Deserialize<'de> for IntervalTree<N, D> where
    N: Deserialize<'de>,
    D: Deserialize<'de>, 
[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]