Struct flate2::CrcReader [−][src]
A wrapper around a Read
that calculates the CRC.
Implementations
impl<R: Read> CrcReader<R>
[src][−]
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,
R: RefUnwindSafe,
impl<R> Send for CrcReader<R> where
R: Send,
R: Send,
impl<R> Sync for CrcReader<R> where
R: Sync,
R: Sync,
impl<R> Unpin for CrcReader<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for CrcReader<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,