Struct rust_htslib::bam::header::HeaderRecord [] [src]

pub struct HeaderRecord<'a> {
    // some fields omitted
}

Header record.

Methods

impl<'a> HeaderRecord<'a>
[src]

fn new(rec_type: &'a [u8]) -> Self

Create a new header record. See SAM format specification for possible record types.

fn push_tag<V: ToString>(&mut self, tag: &'a [u8], value: &V) -> &mut Self

Add a new tag to the record.

Arguments

  • tag - the tag identifier
  • value - the value. Can be any type convertible into a string. Preferably numbers or strings.