1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// A raw SAM record reference sequence name.
#[derive(Debug, Eq, PartialEq)]
pub struct ReferenceSequenceName<'a>(&'a [u8]);

impl<'a> ReferenceSequenceName<'a> {
    pub(super) fn new(buf: &'a [u8]) -> Self {
        Self(buf)
    }
}

impl<'a> AsRef<[u8]> for ReferenceSequenceName<'a> {
    fn as_ref(&self) -> &[u8] {
        self.0
    }
}