Trait noodles_sam::alignment::record::data::Data

source ·
pub trait Data {
    // Required methods
    fn is_empty(&self) -> bool;
    fn get(&self, tag: &Tag) -> Option<Result<Value<'_>>>;
    fn iter(&self) -> Box<dyn Iterator<Item = Result<(Tag, Value<'_>)>> + '_>;
}
Expand description

Alignment record data.

Required Methods§

source

fn is_empty(&self) -> bool

Returns whether there are any fields.

source

fn get(&self, tag: &Tag) -> Option<Result<Value<'_>>>

Returns the value for the given tag.

source

fn iter(&self) -> Box<dyn Iterator<Item = Result<(Tag, Value<'_>)>> + '_>

Returns an iterator over fields.

Trait Implementations§

source§

impl Data for Box<dyn Data + '_>

source§

fn is_empty(&self) -> bool

Returns whether there are any fields.
source§

fn get(&self, tag: &Tag) -> Option<Result<Value<'_>>>

Returns the value for the given tag.
source§

fn iter(&self) -> Box<dyn Iterator<Item = Result<(Tag, Value<'_>)>> + '_>

Returns an iterator over fields.

Implementations on Foreign Types§

source§

impl Data for Box<dyn Data + '_>

source§

fn is_empty(&self) -> bool

source§

fn get(&self, tag: &Tag) -> Option<Result<Value<'_>>>

source§

fn iter(&self) -> Box<dyn Iterator<Item = Result<(Tag, Value<'_>)>> + '_>

Implementors§

source§

impl Data for &noodles_sam::alignment::record_buf::data::Data

source§

impl Data for noodles_sam::alignment::record_buf::data::Data

source§

impl<'a> Data for noodles_sam::record::data::Data<'a>