[−][src]Struct bio::data_structures::interval_tree::ArrayBackedIntervalTree
Implementations
impl<N: Ord + Clone + Copy, D: Clone> ArrayBackedIntervalTree<N, D>
[src]
pub fn new() -> Self
[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 aRange
.
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]
&'a self,
interval: I,
results: &'b mut Vec<Entry<'a, N, D>>
)
Trait Implementations
impl<N: Ord + Clone + Copy, D> Default for ArrayBackedIntervalTree<N, D>
[src]
impl<N, D, V> FromIterator<(V, D)> for ArrayBackedIntervalTree<N, D> where
V: Into<Interval<N>>,
N: Ord + Clone + Copy,
D: Clone,
[src]
V: Into<Interval<N>>,
N: Ord + Clone + Copy,
D: Clone,
fn from_iter<T: IntoIterator<Item = (V, D)>>(iter: T) -> Self
[src]
Auto Trait Implementations
impl<N, D> RefUnwindSafe for ArrayBackedIntervalTree<N, D> where
D: RefUnwindSafe,
N: RefUnwindSafe,
D: RefUnwindSafe,
N: RefUnwindSafe,
impl<N, D> Send for ArrayBackedIntervalTree<N, D> where
D: Send,
N: Send,
D: Send,
N: Send,
impl<N, D> Sync for ArrayBackedIntervalTree<N, D> where
D: Sync,
N: Sync,
D: Sync,
N: Sync,
impl<N, D> Unpin for ArrayBackedIntervalTree<N, D> where
D: Unpin,
N: Unpin,
D: Unpin,
N: Unpin,
impl<N, D> UnwindSafe for ArrayBackedIntervalTree<N, D> where
D: UnwindSafe,
N: UnwindSafe,
D: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,