noodles_vcf/header/parser/
entry.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
use crate::header::{
    record::value::{
        map::{AlternativeAllele, Contig, Filter, Format, Info},
        Map,
    },
    FileFormat,
};

/// A reference to an entry in the header.
pub enum Entry<'a> {
    /// A `fileformat` entry.
    FileFormat(FileFormat),
    /// An `INFO` entry.
    Info(&'a str, &'a Map<Info>),
    /// A `FILTER` entry.
    Filter(&'a str, &'a Map<Filter>),
    /// A `FORMAT` entry.
    Format(&'a str, &'a Map<Format>),
    /// An `ALT` entry.
    AlternativeAllele(&'a str, &'a Map<AlternativeAllele>),
    /// A `contig` entry.
    Contig(&'a str, &'a Map<Contig>),
    /// A nonstadard entry.
    Other,
    /// A header entry.
    Header,
}