pub struct IntervalSet { /* private fields */ }Implementations§
Source§impl IntervalSet
impl IntervalSet
pub fn new() -> Self
pub fn push(&mut self, interval: Interval)
pub fn extend<I: IntoIterator<Item = Interval>>(&mut self, items: I)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn sort(&mut self)
pub const fn is_sorted(&self) -> bool
pub fn chroms(&self) -> impl Iterator<Item = &str>
pub fn get(&self, chrom: &str) -> Option<&[Interval]>
pub fn iter(&self) -> impl Iterator<Item = &Interval>
pub fn iter_chroms(&self) -> impl Iterator<Item = (&str, &[Interval])>
Trait Implementations§
Source§impl Clone for IntervalSet
impl Clone for IntervalSet
Source§fn clone(&self) -> IntervalSet
fn clone(&self) -> IntervalSet
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IntervalSet
impl Debug for IntervalSet
Source§impl Default for IntervalSet
impl Default for IntervalSet
Source§fn default() -> IntervalSet
fn default() -> IntervalSet
Returns the “default value” for a type. Read more
Source§impl FromIterator<Interval> for IntervalSet
impl FromIterator<Interval> for IntervalSet
Auto Trait Implementations§
impl Freeze for IntervalSet
impl RefUnwindSafe for IntervalSet
impl Send for IntervalSet
impl Sync for IntervalSet
impl Unpin for IntervalSet
impl UnsafeUnpin for IntervalSet
impl UnwindSafe for IntervalSet
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