pub struct LocusWalk { /* private fields */ }Implementations§
Source§impl LocusWalk
impl LocusWalk
Sourcepub fn plan(reader: &BamReader, req: &EntriesRequest) -> Result<Self>
pub fn plan(reader: &BamReader, req: &EntriesRequest) -> Result<Self>
A per-locus walk: every alignment its locus overlaps, boundaries and all.
Sourcepub fn restarted(&self) -> Self
pub fn restarted(&self) -> Self
The same walk, back at its first locus.
Shares the plan, so this is one refcount bump however many loci it holds. The progress tracker is fresh: a second pass reports its own progress from zero, which is what a caller watching it expects.
Sourcepub fn plan_windows(
reader: &BamReader,
req: &EntriesRequest,
span: i64,
) -> Result<Self>
pub fn plan_windows( reader: &BamReader, req: &EntriesRequest, span: i64, ) -> Result<Self>
The same plan, for a walk that tiles whole references.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn order(&self) -> &[usize]
pub fn order(&self) -> &[usize]
Request index of each yielded list: the nth list belongs to locus
order()[n].
pub fn next_window( &mut self, reader: &BamReader, ) -> Option<Result<Vec<BamRecord>>>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LocusWalk
impl !UnwindSafe for LocusWalk
impl Freeze for LocusWalk
impl Send for LocusWalk
impl Sync for LocusWalk
impl Unpin for LocusWalk
impl UnsafeUnpin for LocusWalk
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> 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