noodles_vcf::variant::record::info

Trait 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>