Trait noodles_sam::alignment::record::Record

source ·
pub trait Record {
Show 16 methods // Required methods fn name(&self) -> Option<Box<dyn Name + '_>>; fn flags(&self) -> Result<Flags>; fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>; fn alignment_start(&self) -> Option<Result<Position>>; fn mapping_quality(&self) -> Option<Result<MappingQuality>>; fn cigar(&self) -> Box<dyn Cigar + '_>; fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>; fn mate_alignment_start(&self) -> Option<Result<Position>>; fn template_length(&self) -> Result<i32>; fn sequence(&self) -> Box<dyn Sequence + '_>; fn quality_scores(&self) -> Box<dyn QualityScores + '_>; fn data(&self) -> Box<dyn Data + '_>; // Provided methods fn reference_sequence<'h>( &self, header: &'h Header ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>> { ... } fn mate_reference_sequence<'h>( &self, header: &'h Header ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>> { ... } fn alignment_span(&self) -> Result<Option<usize>> { ... } fn alignment_end(&self) -> Option<Result<Position>> { ... }
}
Expand description

An alignment record.

Required Methods§

source

fn name(&self) -> Option<Box<dyn Name + '_>>

Returns the name.

source

fn flags(&self) -> Result<Flags>

Returns the flags.

source

fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>

Returns the reference sequence ID.

source

fn alignment_start(&self) -> Option<Result<Position>>

Returns the alignment start.

source

fn mapping_quality(&self) -> Option<Result<MappingQuality>>

Returns the mapping quality.

source

fn cigar(&self) -> Box<dyn Cigar + '_>

Returns the CIGAR operations.

source

fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>

Returns the mate reference sequence ID.

source

fn mate_alignment_start(&self) -> Option<Result<Position>>

Returns the mate alignment start.

source

fn template_length(&self) -> Result<i32>

Returns the template length.

source

fn sequence(&self) -> Box<dyn Sequence + '_>

Returns the sequence.

source

fn quality_scores(&self) -> Box<dyn QualityScores + '_>

Returns the quality scores.

source

fn data(&self) -> Box<dyn Data + '_>

Returns the data.

Provided Methods§

source

fn reference_sequence<'h>( &self, header: &'h Header ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>

Returns the associated reference sequence.

source

fn mate_reference_sequence<'h>( &self, header: &'h Header ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>

Returns the associated mate reference sequence.

source

fn alignment_span(&self) -> Result<Option<usize>>

Returns the alignment span.

source

fn alignment_end(&self) -> Option<Result<Position>>

Calculates the end position.

Trait Implementations§

source§

impl Record for Box<dyn Record>

source§

fn name(&self) -> Option<Box<dyn Name + '_>>

Returns the name.
source§

fn flags(&self) -> Result<Flags>

Returns the flags.
source§

fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>

Returns the reference sequence ID.
source§

fn alignment_start(&self) -> Option<Result<Position>>

Returns the alignment start.
source§

fn mapping_quality(&self) -> Option<Result<MappingQuality>>

Returns the mapping quality.
source§

fn cigar(&self) -> Box<dyn Cigar + '_>

Returns the CIGAR operations.
source§

fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>

Returns the mate reference sequence ID.
source§

fn mate_alignment_start(&self) -> Option<Result<Position>>

Returns the mate alignment start.
source§

fn template_length(&self) -> Result<i32>

Returns the template length.
source§

fn sequence(&self) -> Box<dyn Sequence + '_>

Returns the sequence.
source§

fn quality_scores(&self) -> Box<dyn QualityScores + '_>

Returns the quality scores.
source§

fn data(&self) -> Box<dyn Data + '_>

Returns the data.
source§

fn reference_sequence<'h>( &self, header: &'h Header ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>

Returns the associated reference sequence.
source§

fn mate_reference_sequence<'h>( &self, header: &'h Header ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>

Returns the associated mate reference sequence.
source§

fn alignment_span(&self) -> Result<Option<usize>>

Returns the alignment span.
source§

fn alignment_end(&self) -> Option<Result<Position>>

Calculates the end position.

Implementations on Foreign Types§

source§

impl Record for Box<dyn Record>

source§

fn name(&self) -> Option<Box<dyn Name + '_>>

source§

fn flags(&self) -> Result<Flags>

source§

fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>

source§

fn alignment_start(&self) -> Option<Result<Position>>

source§

fn mapping_quality(&self) -> Option<Result<MappingQuality>>

source§

fn cigar(&self) -> Box<dyn Cigar + '_>

source§

fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header ) -> Option<Result<usize>>

source§

fn mate_alignment_start(&self) -> Option<Result<Position>>

source§

fn template_length(&self) -> Result<i32>

source§

fn sequence(&self) -> Box<dyn Sequence + '_>

source§

fn quality_scores(&self) -> Box<dyn QualityScores + '_>

source§

fn data(&self) -> Box<dyn Data + '_>

Implementors§