pub enum AlignmentWalk {
Bam(LocusWalk),
Cram(LocusWalk),
}Expand description
A walk over either format’s loci or windows.
Variants§
Implementations§
Source§impl AlignmentWalk
impl AlignmentWalk
Sourcepub fn plan(reader: &Alignments, req: &EntriesRequest) -> Result<Self>
pub fn plan(reader: &Alignments, req: &EntriesRequest) -> Result<Self>
A per-locus walk.
Sourcepub fn plan_windows(
reader: &Alignments,
req: &EntriesRequest,
span: i64,
) -> Result<Self>
pub fn plan_windows( reader: &Alignments, req: &EntriesRequest, span: i64, ) -> Result<Self>
A walk over windows tiling whole references.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn order(&self) -> &[usize]
Sourcepub fn next_window(
&mut self,
reader: &Alignments,
) -> Option<Result<Vec<BamRecord>>>
pub fn next_window( &mut self, reader: &Alignments, ) -> Option<Result<Vec<BamRecord>>>
The next window, from the reader this walk was planned against.
Handing it a reader of the other format is a caller’s mistake rather
than a corrupt file, so it is Error::InvalidArgument — and it cannot
happen through the Python layer, which holds the pair together.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AlignmentWalk
impl !UnwindSafe for AlignmentWalk
impl Freeze for AlignmentWalk
impl Send for AlignmentWalk
impl Sync for AlignmentWalk
impl Unpin for AlignmentWalk
impl UnsafeUnpin for AlignmentWalk
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