Struct rust_htslib::bam::header::HeaderRecord
[−]
[src]
pub struct HeaderRecord<'a> { /* fields omitted */ }
Header record.
Methods
impl<'a> HeaderRecord<'a>
[src]
pub fn new(rec_type: &'a [u8]) -> Self
[src]
Create a new header record. See SAM format specification for possible record types.
ⓘImportant traits for &'a mut Wpub fn push_tag<V: ToString>(&mut self, tag: &'a [u8], value: &V) -> &mut Self
[src]
ⓘImportant traits for &'a mut W
Add 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]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<'a> Clone for HeaderRecord<'a>
[src]
fn clone(&self) -> HeaderRecord<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more