Struct noodles::vcf::record::alternate_bases::allele::symbol::structural_variant::StructuralVariant [−][src]
pub struct StructuralVariant { /* fields omitted */ }
Expand description
A VCF alternate bases allele structural variant symbol.
Implementations
Creates a allele structural variant symbol.
Examples
use noodles_vcf::record::alternate_bases::allele::symbol::{
structural_variant::Type,
StructuralVariant,
};
let structural_variant = StructuralVariant::new(Type::Deletion, Vec::new());
Returns the structural variant type.
Examples
use noodles_vcf::record::alternate_bases::allele::symbol::{
structural_variant::Type,
StructuralVariant,
};
let structural_variant = StructuralVariant::new(Type::Deletion, Vec::new());
assert_eq!(structural_variant.ty(), Type::Deletion);
Returns the structural variant subtypes.
Examples
use noodles_vcf::record::alternate_bases::allele::symbol::{
structural_variant::Type,
StructuralVariant,
};
let structural_variant = StructuralVariant::new(
Type::Deletion,
vec![String::from("ME")],
);
assert_eq!(structural_variant.subtypes(), [String::from("ME")]);
Trait Implementations
Performs the conversion.
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
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 StructuralVariant
impl Send for StructuralVariant
impl Sync for StructuralVariant
impl Unpin for StructuralVariant
impl UnwindSafe for StructuralVariant
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.