pub trait Record {
Show 16 methods
// Required methods
fn name(&self) -> Option<&BStr>;
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) -> Option<Result<usize>> { ... }
fn alignment_end(&self) -> Option<Result<Position>> { ... }
}
Expand description
An alignment record.
Required Methods§
Sourcefn reference_sequence_id<'r, 'h: 'r>(
&'r self,
header: &'h Header,
) -> Option<Result<usize>>
fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>
Returns the reference sequence ID.
Sourcefn alignment_start(&self) -> Option<Result<Position>>
fn alignment_start(&self) -> Option<Result<Position>>
Returns the alignment start.
This position is 1-based, inclusive.
Sourcefn mapping_quality(&self) -> Option<Result<MappingQuality>>
fn mapping_quality(&self) -> Option<Result<MappingQuality>>
Returns the mapping quality.
Sourcefn mate_reference_sequence_id<'r, 'h: 'r>(
&'r self,
header: &'h Header,
) -> Option<Result<usize>>
fn mate_reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>
Returns the mate reference sequence ID.
Sourcefn mate_alignment_start(&self) -> Option<Result<Position>>
fn mate_alignment_start(&self) -> Option<Result<Position>>
Returns the mate alignment start.
This position is 1-based, inclusive.
Sourcefn template_length(&self) -> Result<i32>
fn template_length(&self) -> Result<i32>
Returns the template length.
Sourcefn quality_scores(&self) -> Box<dyn QualityScores + '_>
fn quality_scores(&self) -> Box<dyn QualityScores + '_>
Returns the quality scores.
Provided Methods§
Sourcefn reference_sequence<'h>(
&self,
header: &'h Header,
) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>
fn reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>
Returns the associated reference sequence.
Sourcefn mate_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>)>>
Returns the associated mate reference sequence.
Sourcefn alignment_span(&self) -> Option<Result<usize>>
fn alignment_span(&self) -> Option<Result<usize>>
Returns the alignment span.
Sourcefn alignment_end(&self) -> Option<Result<Position>>
fn alignment_end(&self) -> Option<Result<Position>>
Calculates the end position.
This position is 1-based, inclusive.
Trait Implementations§
Source§impl Record for Box<dyn Record>
impl Record for Box<dyn Record>
Source§fn reference_sequence_id<'r, 'h: 'r>(
&'r self,
header: &'h Header,
) -> Option<Result<usize>>
fn reference_sequence_id<'r, 'h: 'r>( &'r self, header: &'h Header, ) -> Option<Result<usize>>
Returns the reference sequence ID.
Source§fn mapping_quality(&self) -> Option<Result<MappingQuality>>
fn mapping_quality(&self) -> Option<Result<MappingQuality>>
Returns the mapping quality.
Source§fn mate_reference_sequence_id<'r, 'h: 'r>(
&'r self,
header: &'h Header,
) -> Option<Result<usize>>
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>>
fn mate_alignment_start(&self) -> Option<Result<Position>>
Returns the mate alignment start. Read more
Source§fn template_length(&self) -> Result<i32>
fn template_length(&self) -> Result<i32>
Returns the template length.
Source§fn quality_scores(&self) -> Box<dyn QualityScores + '_>
fn quality_scores(&self) -> Box<dyn QualityScores + '_>
Returns the quality scores.
Source§fn reference_sequence<'h>(
&self,
header: &'h Header,
) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>
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>)>>
fn mate_reference_sequence<'h>( &self, header: &'h Header, ) -> Option<Result<(&'h BStr, &'h Map<ReferenceSequence>)>>
Returns the associated mate reference sequence.