Trait noodles::vcf::variant::record::samples::series::value::genotype::Genotype

source ·
pub trait Genotype: Debug {
    // Required method
    fn iter(
        &self
    ) -> Box<dyn Iterator<Item = Result<(Option<usize>, Phasing), Error>> + '_>;
}
Expand description

A variant record samples genotype value.

Required Methods§

source

fn iter( &self ) -> Box<dyn Iterator<Item = Result<(Option<usize>, Phasing), Error>> + '_>

Returns an iterator over allele position-phasing pairs.

Trait Implementations§

source§

impl TryFrom<&dyn Genotype> for Genotype

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( genotype: &dyn Genotype ) -> Result<Genotype, <Genotype as TryFrom<&dyn Genotype>>::Error>

Performs the conversion.

Implementors§

source§

impl Genotype for &noodles::vcf::variant::record_buf::samples::sample::value::Genotype

source§

impl Genotype for noodles::bcf::record::samples::series::value::Genotype<'_>

source§

impl<'a> Genotype for noodles::vcf::record::samples::series::value::Genotype<'a>