Struct noodles_vcf::header::alternative_allele::AlternativeAllele [−][src]
pub struct AlternativeAllele { /* fields omitted */ }
Expand description
A VCF header symbolic alternate allele record (ALT
).
Implementations
Creates a VCF header symbolic alternate allele.
Examples
use noodles_vcf::{
header::AlternativeAllele,
record::alternate_bases::allele::{
symbol::{structural_variant::Type, StructuralVariant},
Symbol,
},
};
let alternative_allele = AlternativeAllele::new(
Symbol::StructuralVariant(StructuralVariant::from(Type::Deletion)),
"Deletion",
);
Returns the alternate allele symbol.
Examples
use noodles_vcf::{
header::AlternativeAllele,
record::alternate_bases::allele::{
symbol::{structural_variant::Type, StructuralVariant},
Symbol,
},
};
let alternative_allele = AlternativeAllele::new(
Symbol::StructuralVariant(StructuralVariant::from(Type::Deletion)),
"Deletion",
);
assert_eq!(
alternative_allele.id(),
&Symbol::StructuralVariant(StructuralVariant::from(Type::Deletion)),
);
Returns the description of the alternate allele symbol.
Examples
use noodles_vcf::{
header::AlternativeAllele,
record::alternate_bases::allele::{
symbol::{structural_variant::Type, StructuralVariant},
Symbol,
},
};
let alternative_allele = AlternativeAllele::new(
Symbol::StructuralVariant(StructuralVariant::from(Type::Deletion)),
"Deletion",
);
assert_eq!(alternative_allele.description(), "Deletion");
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for AlternativeAllele
impl Send for AlternativeAllele
impl Sync for AlternativeAllele
impl Unpin for AlternativeAllele
impl UnwindSafe for AlternativeAllele
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.