Struct rust_htslib::bam::header::HeaderRecord [−][src]
pub struct HeaderRecord<'a> { /* fields omitted */ }Header record.
Methods
impl<'a> HeaderRecord<'a>[src]
impl<'a> HeaderRecord<'a>pub fn new(rec_type: &'a [u8]) -> Self[src]
pub fn new(rec_type: &'a [u8]) -> SelfCreate a new header record. See SAM format specification for possible record types.
ⓘImportant traits for &'a mut Rpub fn push_tag<V: ToString>(&mut self, tag: &'a [u8], value: &V) -> &mut Self[src]
ⓘImportant traits for &'a mut R
pub fn push_tag<V: ToString>(&mut self, tag: &'a [u8], value: &V) -> &mut SelfAdd a new tag to the record.
Arguments
tag- the tag identifiervalue- the value. Can be any type convertible into a string. Preferably numbers or strings.
Trait Implementations
impl<'a> Debug for HeaderRecord<'a>[src]
impl<'a> Debug for HeaderRecord<'a>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<'a> Clone for HeaderRecord<'a>[src]
impl<'a> Clone for HeaderRecord<'a>fn clone(&self) -> HeaderRecord<'a>[src]
fn clone(&self) -> HeaderRecord<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
Auto Trait Implementations
impl<'a> Send for HeaderRecord<'a>
impl<'a> Send for HeaderRecord<'a>impl<'a> Sync for HeaderRecord<'a>
impl<'a> Sync for HeaderRecord<'a>