[][src]Struct rust_htslib::bgzf::Reader

pub struct Reader { /* fields omitted */ }

A reader that transparently reads uncompressed, gzip, and bgzip files.

Implementations

impl Reader[src]

pub fn from_stdin() -> Result<Self, Error>[src]

Create a new Reader to read from stdin.

pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Create a new Reader from a path.

Arguments

  • path - the path to open.

pub fn from_url(url: &Url) -> Result<Self, Error>[src]

Create a new Reader from an URL.

Arguments

  • url - the url to open

pub fn set_thread_pool(&mut self, tpool: &ThreadPool) -> Result<()>[src]

Set the thread pool to use for parallel decompression.

Arguments

  • tpool - the thread-pool to use

Trait Implementations

impl Debug for Reader[src]

impl Read for Reader[src]

Auto Trait Implementations

impl RefUnwindSafe for Reader

impl !Send for Reader

impl !Sync for Reader

impl Unpin for Reader

impl UnwindSafe for Reader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.