[][src]Struct detect_compression::DetectReader

pub struct DetectReader { /* fields omitted */ }

The BufRead type reads from compressed or uncompressed file.

This reader detects compression algorithms from file name extension.

Methods

impl DetectReader[src]

pub fn open<P: AsRef<Path>>(path: P) -> Result<DetectReader>[src]

Open compressed or uncompressed file.

pub fn open_with_wrapper<P: AsRef<Path>, B: ReadWrapperBuilder>(
    path: P,
    builder: B
) -> Result<DetectReader>
[src]

Open compressed or uncompressed file using wrapper type.

InnerReadWrapper is the wrapepr type's trait handles compressed byte stream. For example, the progress-counting wrapper enables you to calculate progress of loading.

Trait Implementations

impl BufRead for DetectReader[src]

impl Read for DetectReader[src]

Auto Trait Implementations

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.