Struct noodles::vcf::header::record::Record [−][src]
pub struct Record { /* fields omitted */ }
Expand description
A generic VCF header record.
Implementations
Creates a generic VCF header record.
Examples
use noodles_vcf::header::{record::{Key, Value}, Record};
let record = Record::new(Key::FileFormat, Value::String(String::from("VCFv4.3")));
Returns the key of the record.
Examples
use noodles_vcf::header::{record::{Key, Value}, Record};
let record = Record::new(Key::FileFormat, Value::String(String::from("VCFv4.3")));
assert_eq!(record.key(), &Key::FileFormat);
Trait Implementations
type Error = TryFromRecordError
type Error = TryFromRecordError
The type returned in the event of a conversion error.
pub fn try_from(
record: Record
) -> Result<AlternativeAllele, <AlternativeAllele as TryFrom<Record>>::Error>
pub fn try_from(
record: Record
) -> Result<AlternativeAllele, <AlternativeAllele as TryFrom<Record>>::Error>
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Record
impl UnwindSafe for Record
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.