noodles_sam::alignment::record::data

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