pub struct FastqBatch<'a> { /* private fields */ }Expand description
A batch of borrowed FASTQ records from one reader slab.
The batch is invalidated by the next mutable call on the reader that produced it. Process records before requesting another batch.
Implementations§
Source§impl<'a> FastqBatch<'a>
impl<'a> FastqBatch<'a>
Sourcepub fn record_refs(&self) -> &'a [RecordRef]
pub fn record_refs(&self) -> &'a [RecordRef]
Record ranges within bytes.
Sourcepub fn base_offset(&self) -> u64
pub fn base_offset(&self) -> u64
Absolute byte offset of bytes()[0] in the original stream.
Sourcepub fn first_record_index(&self) -> u64
pub fn first_record_index(&self) -> u64
Zero-based index of the first record in this batch.
Sourcepub fn pair_validation(&self) -> PairValidation
pub fn pair_validation(&self) -> PairValidation
Pair validation mode inherited from the producing reader.
Sourcepub fn records(&self) -> impl Iterator<Item = FastqRecord<'a>> + 'a
pub fn records(&self) -> impl Iterator<Item = FastqRecord<'a>> + 'a
Iterate borrowed record views.
Sourcepub fn interleaved_pairs(&'a self) -> Result<InterleavedPairs<'a>>
pub fn interleaved_pairs(&'a self) -> Result<InterleavedPairs<'a>>
Validate and iterate adjacent interleaved read pairs.
Returns an error if the batch has an odd record count or mate
identifiers fail the configured PairValidation mode.
Sourcepub fn paired_with(
&'a self,
mate: &'a FastqBatch<'a>,
) -> Result<PairedRecords<'a>>
pub fn paired_with( &'a self, mate: &'a FastqBatch<'a>, ) -> Result<PairedRecords<'a>>
Validate and zip this batch with a mate batch from a separate reader.
Identifier checks use this batch’s configured PairValidation mode.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FastqBatch<'a>
impl<'a> RefUnwindSafe for FastqBatch<'a>
impl<'a> Send for FastqBatch<'a>
impl<'a> Sync for FastqBatch<'a>
impl<'a> Unpin for FastqBatch<'a>
impl<'a> UnsafeUnpin for FastqBatch<'a>
impl<'a> UnwindSafe for FastqBatch<'a>
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