pub enum FormatValue {
Absent,
Missing,
Int(i32),
Float(f32),
String(String),
Array(Vec<FormatValue>),
PerSample(Vec<FormatValue>),
Genotype(Genotype),
}Expand description
Represents a value from a FORMAT field in a VCF record.
FORMAT fields contain per-sample data and can hold integers, floats, or strings. Values can be scalar, array-valued, or organized per-sample.
Absent: The tag is not present in the recordMissing: The tag is present but has no value (.in VCF)Int: A single integer valueFloat: A single float valueString: A single string valueArray: Multiple values (for Number != 1 fields)PerSample: A vector of values, one per sample in the VCF
Variants§
Absent
The FORMAT tag is not present in the record.
Missing
The FORMAT tag is present but has a missing value (.).
Int(i32)
A single integer value.
Float(f32)
A single float value.
String(String)
A single string value.
Array(Vec<FormatValue>)
An array of values (for Number != 1 fields).
PerSample(Vec<FormatValue>)
Per-sample values, one entry per sample in the VCF.
Genotype(Genotype)
A parsed genotype value (for the GT field).
Trait Implementations§
Source§impl Clone for FormatValue
impl Clone for FormatValue
Source§fn clone(&self) -> FormatValue
fn clone(&self) -> FormatValue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatValue
impl Debug for FormatValue
Source§impl PartialEq for FormatValue
impl PartialEq for FormatValue
impl StructuralPartialEq for FormatValue
Auto Trait Implementations§
impl Freeze for FormatValue
impl RefUnwindSafe for FormatValue
impl Send for FormatValue
impl Sync for FormatValue
impl Unpin for FormatValue
impl UnwindSafe for FormatValue
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