Trait rust_htslib::tbx::Read
source · pub trait Read: Sized {
fn read(&mut self, record: &mut Vec<u8>) -> Result<(), ReadError>;
fn records(&mut self) -> Records<'_, Self> ⓘ;
fn header(&self) -> &Vec<String> ⓘ;
}
Expand description
A trait for a Tabix reader with a read method.
Required Methods§
sourcefn read(&mut self, record: &mut Vec<u8>) -> Result<(), ReadError>
fn read(&mut self, record: &mut Vec<u8>) -> Result<(), ReadError>
Read next line into the given Vec<u8>
(i.e., ASCII string).
Use this method in combination with a single allocated record to avoid the reallocations occurring with the iterator.
Arguments
record
- theVec<u8>
to be filled