pub struct Reader { /* private fields */ }Expand description
A site reader.
Implementations§
Source§impl Reader
impl Reader
Sourcepub fn create_zero_scs(&self) -> Scs
pub fn create_zero_scs(&self) -> Scs
Returns a spectrum filled with zeros corresponding to the shape defined by the reader configuration.
Sourcepub fn current_contig(&self) -> &str
pub fn current_contig(&self) -> &str
Returns the current contig of the reader.
Sourcepub fn current_position(&self) -> usize
pub fn current_position(&self) -> usize
Returns the current position of the reader within its current contig.
Sourcepub fn current_skipped_samples(
&self,
) -> impl Iterator<Item = (&Sample, &Skipped)>
pub fn current_skipped_samples( &self, ) -> impl Iterator<Item = (&Sample, &Skipped)>
Returns an iterator over the currently skipped genotypes in the reader, with their associated samples.
Sourcepub fn read_site(&mut self) -> ReadStatus<Site<'_>>
pub fn read_site(&mut self) -> ReadStatus<Site<'_>>
Reads the next site in the reader.
Auto Trait Implementations§
impl Freeze for Reader
impl !RefUnwindSafe for Reader
impl !Send for Reader
impl !Sync for Reader
impl Unpin for Reader
impl !UnwindSafe for Reader
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