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
//! SAM header record.

pub mod kind;
pub mod value;

use bstr::BString;

pub use self::kind::Kind;
use self::value::{
    map::{self, Program, ReadGroup, ReferenceSequence},
    Map,
};

/// A SAM header record.
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum Record {
    /// A header (`HD`) record.
    Header(Map<map::Header>),
    /// A reference sequence (`SQ`) record.
    ReferenceSequence(BString, Map<ReferenceSequence>),
    /// A read group (`RG`) record.
    ReadGroup(BString, Map<ReadGroup>),
    /// A program (`PG`) record.
    Program(BString, Map<Program>),
    /// A comment (`CO`) record.
    Comment(BString),
}