Trait AlignmentReader

Source
pub trait AlignmentReader<'a> {
    // Required methods
    fn start(&self) -> (u32, u32);
    fn get_file(&self) -> &'a BamFile;
    fn next(
        &self,
        buf: *mut bam1_t,
    ) -> Result<Option<Alignment<'a>>, AlignmentError>;

    // Provided method
    fn into_alignment_iter(self) -> AlignmentIter<'a, Self> 
       where Self: Sized { ... }
}

Required Methods§

Source

fn start(&self) -> (u32, u32)

Source

fn get_file(&self) -> &'a BamFile

Source

fn next( &self, buf: *mut bam1_t, ) -> Result<Option<Alignment<'a>>, AlignmentError>

Provided Methods§

Source

fn into_alignment_iter(self) -> AlignmentIter<'a, Self>
where Self: Sized,

Implementors§

Source§

impl<'a> AlignmentReader<'a> for &'a BamFile