pub struct Samples<'r>(/* private fields */);
Expand description
Raw VCF record genotypes.
Implementations§
Source§impl<'r> Samples<'r>
impl<'r> Samples<'r>
Sourcepub fn get(&self, header: &Header, sample_name: &str) -> Option<Sample<'r>>
pub fn get(&self, header: &Header, sample_name: &str) -> Option<Sample<'r>>
Returns the sample with the given sample name.
Sourcepub fn select(&'r self, column_name: &str) -> Option<Series<'r>>
pub fn select(&'r self, column_name: &str) -> Option<Series<'r>>
Returns the series with the given column name.
Trait Implementations§
Source§impl<'r> Samples for Samples<'r>
impl<'r> Samples for Samples<'r>
Source§fn column_names<'a, 'h: 'a>(
&'a self,
_: &'h Header,
) -> Box<dyn Iterator<Item = Result<&'a str>> + 'a>
fn column_names<'a, 'h: 'a>( &'a self, _: &'h Header, ) -> Box<dyn Iterator<Item = Result<&'a str>> + 'a>
Returns the column names.
Source§fn select<'a, 'h: 'a>(
&'a self,
_: &'h Header,
column_name: &str,
) -> Option<Result<Box<dyn Series + 'a>>>
fn select<'a, 'h: 'a>( &'a self, _: &'h Header, column_name: &str, ) -> Option<Result<Box<dyn Series + 'a>>>
Returns the series with the given column name.
impl<'r> Eq for Samples<'r>
impl<'r> StructuralPartialEq for Samples<'r>
Auto Trait Implementations§
impl<'r> Freeze for Samples<'r>
impl<'r> RefUnwindSafe for Samples<'r>
impl<'r> Send for Samples<'r>
impl<'r> Sync for Samples<'r>
impl<'r> Unpin for Samples<'r>
impl<'r> UnwindSafe for Samples<'r>
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.