[−][src]Struct rust_htslib::bcf::IndexedReader
An indexed VCF/BCF reader.
Methods
impl IndexedReader
[src]
pub fn from_path<P: AsRef<Path>>(
path: P
) -> Result<Self, IndexedReaderPathError>
[src]
path: P
) -> Result<Self, IndexedReaderPathError>
pub fn from_url(url: &Url) -> Result<Self, IndexedReaderError>
[src]
Create a new IndexedReader
from an URL.
pub fn fetch(
&mut self,
rid: u32,
start: u32,
end: u32
) -> Result<(), FetchError>
[src]
&mut self,
rid: u32,
start: u32,
end: u32
) -> Result<(), FetchError>
Jump to the given region.
Arguments
rid
- numeric ID of the reference to jump to; useHeaderView::name2rid
for resolving contig name to ID.start
-0
-based start coordinate of region on reference.end
-0
-based end coordinate of region on reference.
Trait Implementations
impl Read for IndexedReader
[src]
fn read(&mut self, record: &mut Record) -> Result<(), ReadError>
[src]
ⓘImportant traits for Records<'a, R>fn records(&mut self) -> Records<Self>
[src]
ⓘImportant traits for Records<'a, R>
fn set_threads(&mut self, n_threads: usize) -> Result<(), ThreadingError>
[src]
fn header(&self) -> &HeaderView
[src]
fn empty_record(&self) -> Record
[src]
impl Drop for IndexedReader
[src]
impl Send for IndexedReader
[src]
impl Debug for IndexedReader
[src]
Auto Trait Implementations
impl !Sync for IndexedReader
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,