Trait noodles_vcf::variant::record::samples::series::Series

source ·
pub trait Series {
    // Required methods
    fn name<'a, 'h: 'a>(&'a self, header: &'h Header) -> Result<&'a str>;
    fn get<'a, 'h: 'a>(
        &'a self,
        header: &'h Header,
        i: usize,
    ) -> Option<Option<Result<Value<'a>>>>;
    fn iter<'a, 'h: 'a>(
        &'a self,
        header: &'h Header,
    ) -> Box<dyn Iterator<Item = Result<Option<Value<'a>>>> + 'a>;
}
Expand description

A variant record samples series.

Required Methods§

source

fn name<'a, 'h: 'a>(&'a self, header: &'h Header) -> Result<&'a str>

Returns the name.

source

fn get<'a, 'h: 'a>( &'a self, header: &'h Header, i: usize, ) -> Option<Option<Result<Value<'a>>>>

Return the value at the given index.

source

fn iter<'a, 'h: 'a>( &'a self, header: &'h Header, ) -> Box<dyn Iterator<Item = Result<Option<Value<'a>>>> + 'a>

Returns an iterator over values.

Implementors§

source§

impl<'r> Series for noodles_vcf::record::samples::series::Series<'r>

source§

impl<'s> Series for noodles_vcf::variant::record_buf::samples::Series<'s>