[][src]Struct flate2::CrcReader

pub struct CrcReader<R> { /* fields omitted */ }

A wrapper around a Read that calculates the CRC.

Implementations

impl<R: Read> CrcReader<R>[src]

pub fn new(r: R) -> CrcReader<R>[src]

Create a new CrcReader.

impl<R> CrcReader<R>[src]

pub fn crc(&self) -> &Crc[src]

Get the Crc for this CrcReader.

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

Get the reader that is wrapped by this CrcReader.

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

Get the reader that is wrapped by this CrcReader by reference.

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

Get a mutable reference to the reader that is wrapped by this CrcReader.

pub fn reset(&mut self)[src]

Reset the Crc in this CrcReader.

Trait Implementations

impl<R: BufRead> BufRead for CrcReader<R>[src]

impl<R: Debug> Debug for CrcReader<R>[src]

impl<R: Read> Read for CrcReader<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for CrcReader<R> where
    R: RefUnwindSafe

impl<R> Send for CrcReader<R> where
    R: Send

impl<R> Sync for CrcReader<R> where
    R: Sync

impl<R> Unpin for CrcReader<R> where
    R: Unpin

impl<R> UnwindSafe for CrcReader<R> where
    R: UnwindSafe

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.