Struct bzip2::bufread::MultiBzDecoder[][src]

pub struct MultiBzDecoder<R>(_);

A bzip2 streaming decoder that decodes all members of a multistream.

Wikipedia, particularly, uses bzip2 multistream for their dumps, and the pbzip2 tool creates such data as well;

Implementations

impl<R: BufRead> MultiBzDecoder<R>[src]

pub fn new(r: R) -> MultiBzDecoder<R>

Notable traits for MultiBzDecoder<R>

impl<R: BufRead> Read for MultiBzDecoder<R>impl<R: BufRead + Write> Write for MultiBzDecoder<R>
[src]

Creates a new decoder from the given reader. If the bzip2 stream contains multiple members all will be decoded.

impl<R> MultiBzDecoder<R>[src]

pub fn get_ref(&self) -> &R[src]

Acquires a reference to the underlying reader.

pub fn get_mut(&mut self) -> &mut R[src]

Acquires a mutable reference to the underlying stream.

Note that mutation of the stream may result in surprising results if this encoder is continued to be used.

pub fn into_inner(self) -> R[src]

Consumes this decoder, returning the underlying reader.

Trait Implementations

impl<R: BufRead> Read for MultiBzDecoder<R>[src]

impl<R: BufRead + Write> Write for MultiBzDecoder<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for MultiBzDecoder<R> where
    R: RefUnwindSafe
[src]

impl<R> Send for MultiBzDecoder<R> where
    R: Send
[src]

impl<R> Sync for MultiBzDecoder<R> where
    R: Sync
[src]

impl<R> Unpin for MultiBzDecoder<R> where
    R: Unpin
[src]

impl<R> UnwindSafe for MultiBzDecoder<R> where
    R: UnwindSafe
[src]

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.