Trait noodles_vcf::variant::record::info::Info

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

Variant record info fields.

Required Methods§

source

fn is_empty(&self) -> bool

Returns whether there are any fields.

source

fn len(&self) -> usize

Returns the number of fields.

source

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

Returns the value of the given key.

source

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

Returns an iterator over fields.

Trait Implementations§

source§

impl Info for Box<dyn Info + '_>

source§

fn is_empty(&self) -> bool

Returns whether there are any fields.
source§

fn len(&self) -> usize

Returns the number of fields.
source§

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

Returns the value of the given key.
source§

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

Returns an iterator over fields.

Implementations on Foreign Types§

source§

impl Info for Box<dyn Info + '_>

source§

fn is_empty(&self) -> bool

source§

fn len(&self) -> usize

source§

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

source§

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

Implementors§

source§

impl Info for &noodles_vcf::variant::record_buf::info::Info

source§

impl Info for noodles_vcf::variant::record_buf::info::Info

source§

impl<'r> Info for noodles_vcf::record::Info<'r>