Struct bio::data_structures::interval_tree::ArrayBackedIntervalTree
source · [−]Implementations
sourceimpl<N: Ord + Clone + Copy, D: Clone> ArrayBackedIntervalTree<N, D>
impl<N: Ord + Clone + Copy, D: Clone> ArrayBackedIntervalTree<N, D>
pub fn new() -> Self
pub fn insert<I: Into<Interval<N>>>(&mut self, interval: I, data: D)
pub fn index(&mut self)
sourcepub fn find<I: Into<Interval<N>>>(&self, interval: I) -> Vec<Entry<'_, N, D>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn find<I: Into<Interval<N>>>(&self, interval: I) -> Vec<Entry<'_, N, D>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Trait Implementations
sourceimpl<N, D, V> FromIterator<(V, D)> for ArrayBackedIntervalTree<N, D>where
V: Into<Interval<N>>,
N: Ord + Clone + Copy,
D: Clone,
impl<N, D, V> FromIterator<(V, D)> for ArrayBackedIntervalTree<N, D>where
V: Into<Interval<N>>,
N: Ord + Clone + Copy,
D: Clone,
sourcefn from_iter<T: IntoIterator<Item = (V, D)>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = (V, D)>>(iter: T) -> Self
Creates a value from an iterator. Read more
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read morefn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.