pub trait Record {
// Required methods
fn reference_sequence_name<'a, 'h: 'a>(
&'a self,
header: &'h Header,
) -> Result<&'a str>;
fn variant_start(&self) -> Option<Result<Position>>;
fn ids(&self) -> Box<dyn Ids + '_>;
fn reference_bases(&self) -> Box<dyn ReferenceBases + '_>;
fn alternate_bases(&self) -> Box<dyn AlternateBases + '_>;
fn quality_score(&self) -> Option<Result<f32>>;
fn filters(&self) -> Box<dyn Filters + '_>;
fn info(&self) -> Box<dyn Info + '_>;
fn samples(&self) -> Result<Box<dyn Samples + '_>>;
// Provided methods
fn variant_span(&self, header: &Header) -> Result<usize> { ... }
fn variant_end(&self, header: &Header) -> Result<Position> { ... }
}
Expand description
A variant record.
Required Methods§
Sourcefn reference_sequence_name<'a, 'h: 'a>(
&'a self,
header: &'h Header,
) -> Result<&'a str>
fn reference_sequence_name<'a, 'h: 'a>( &'a self, header: &'h Header, ) -> Result<&'a str>
Returns the reference sequence name.
Sourcefn variant_start(&self) -> Option<Result<Position>>
fn variant_start(&self) -> Option<Result<Position>>
Returns the variant start position.
This position is 1-based, inclusive.
Sourcefn reference_bases(&self) -> Box<dyn ReferenceBases + '_>
fn reference_bases(&self) -> Box<dyn ReferenceBases + '_>
Returns the reference bases.
Sourcefn alternate_bases(&self) -> Box<dyn AlternateBases + '_>
fn alternate_bases(&self) -> Box<dyn AlternateBases + '_>
Returns the alternate bases.
Sourcefn quality_score(&self) -> Option<Result<f32>>
fn quality_score(&self) -> Option<Result<f32>>
Returns the quality scores.
Provided Methods§
Sourcefn variant_span(&self, header: &Header) -> Result<usize>
fn variant_span(&self, header: &Header) -> Result<usize>
Returns the variant span.
Sourcefn variant_end(&self, header: &Header) -> Result<Position>
fn variant_end(&self, header: &Header) -> Result<Position>
Returns or calculates the variant end position.
If available, this returns the value of the END
INFO field. Otherwise, it is calculated
using the variant start position and reference bases length.
This position is 1-based, inclusive.