pub enum InfoValue {
Absent,
Missing,
Bool(bool),
Int(i32),
Float(f32),
String(String),
Array(Vec<InfoValue>),
}Expand description
Represents a value from an INFO field in a VCF record.
INFO fields can hold various types of data (flags, integers, floats, strings) and can be scalar or array-valued. This enum captures all possible states:
Absent: The tag is not present in the recordMissing: The tag is present but has no value (.in VCF)Bool: A flag (presence/absence)Int: A single integer valueFloat: A single float valueString: A single string valueArray: Multiple values of any type
Variants§
Absent
The INFO tag is not present in the record.
Missing
The INFO tag is present but has a missing value (.).
Bool(bool)
A boolean flag (true if present).
Int(i32)
A single integer value.
Float(f32)
A single float value.
String(String)
A single string value.
Array(Vec<InfoValue>)
An array of values (for Number != 1 fields).
Trait Implementations§
impl StructuralPartialEq for InfoValue
Auto Trait Implementations§
impl Freeze for InfoValue
impl RefUnwindSafe for InfoValue
impl Send for InfoValue
impl Sync for InfoValue
impl Unpin for InfoValue
impl UnwindSafe for InfoValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more