Enum noodles_vcf::record::info::field::value::Value [−][src]
pub enum Value {
Integer(i32),
Float(f32),
Flag,
Character(char),
String(String),
IntegerArray(Vec<i32>),
FloatArray(Vec<f32>),
CharacterArray(Vec<char>),
StringArray(Vec<String>),
}
Expand description
A VCF record info field value.
Variants
Integer(i32)
An 32-bit integer.
Tuple Fields of Integer
0: i32
Float(f32)
A single-precision floating-point.
Tuple Fields of Float
0: f32
A boolean.
Character(char)
A character.
Tuple Fields of Character
0: char
String(String)
A string.
Tuple Fields of String
0: String
An array of 32-bit integers.
An array of single-precision floating-points.
An array of characters.
An array of strings.
Implementations
Parses a raw info field value for the given key.
Examples
use noodles_vcf::record::info::field::{Key, Value};
assert_eq!(Value::from_str_key("1", &Key::SamplesWithDataCount), Ok(Value::Integer(1)));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more