Struct noodles::vcf::record::genotype::Field [−][src]
pub struct Field { /* fields omitted */ }
Expand description
A VCF record genotype field.
Implementations
Parses a raw genotype field for the given key.
Examples
use noodles_vcf::record::genotype::{field::{Key, Value}, Field};
assert_eq!(
Field::from_str_key("13", &Key::ConditionalGenotypeQuality),
Ok(Field::new(Key::ConditionalGenotypeQuality, Some(Value::Integer(13))))
);
Creates a VCF record genotype field.
Examples
use noodles_vcf::record::genotype::{field::{Key, Value}, Field};
let field = Field::new(
Key::ConditionalGenotypeQuality,
Some(Value::Integer(13)),
);
Returns the genotype field key.
Examples
use noodles_vcf::record::genotype::{field::{Key, Value}, Field};
let field = Field::new(
Key::ConditionalGenotypeQuality,
Some(Value::Integer(13)),
);
assert_eq!(field.key(), &Key::ConditionalGenotypeQuality);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Field
impl UnwindSafe for Field
Blanket Implementations
Mutably borrows from an owned value. Read more