pub struct IntervalTree { /* private fields */ }Expand description
A standalone interval tree for efficient overlap queries
This provides direct access to the tree structure for advanced use cases.
Implementations§
Source§impl IntervalTree
impl IntervalTree
Sourcepub fn from_annotations(annotations: Vec<Annotation>) -> Self
pub fn from_annotations(annotations: Vec<Annotation>) -> Self
Build interval tree from a collection of annotations
Sourcepub fn query<'a>(&'a self, interval: &GenomicInterval) -> Vec<&'a str>
pub fn query<'a>(&'a self, interval: &GenomicInterval) -> Vec<&'a str>
Query for overlapping annotations
Sourcepub fn query_annotations<'a>(
&'a self,
interval: &GenomicInterval,
) -> Vec<&'a Annotation>
pub fn query_annotations<'a>( &'a self, interval: &GenomicInterval, ) -> Vec<&'a Annotation>
Query for overlapping annotations (full structs)
Trait Implementations§
Source§impl Clone for IntervalTree
impl Clone for IntervalTree
Source§fn clone(&self) -> IntervalTree
fn clone(&self) -> IntervalTree
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntervalTree
impl Debug for IntervalTree
Auto Trait Implementations§
impl Freeze for IntervalTree
impl RefUnwindSafe for IntervalTree
impl Send for IntervalTree
impl Sync for IntervalTree
impl Unpin for IntervalTree
impl UnsafeUnpin for IntervalTree
impl UnwindSafe for IntervalTree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more