[−][src]Struct flate2::CrcWriter
pub struct CrcWriter<W> { /* fields omitted */ }
A wrapper around a Write
that calculates the CRC.
Methods
impl<W> CrcWriter<W>
[src]
impl<W> CrcWriter<W>
pub fn crc(&self) -> &Crc
[src]
pub fn crc(&self) -> &Crc
Get the Crc for this CrcWriter.
pub fn into_inner(self) -> W
[src]
pub fn into_inner(self) -> W
Get the writer that is wrapped by this CrcWriter.
ⓘImportant traits for &'a mut Wpub fn get_ref(&self) -> &W
[src]
pub fn get_ref(&self) -> &W
Get the writer that is wrapped by this CrcWriter by reference.
ⓘImportant traits for &'a mut Wpub fn get_mut(&mut self) -> &mut W
[src]
pub fn get_mut(&mut self) -> &mut W
Get a mutable reference to the writer that is wrapped by this CrcWriter.
pub fn reset(&mut self)
[src]
pub fn reset(&mut self)
Reset the Crc in this CrcWriter.
impl<W: Write> CrcWriter<W>
[src]
impl<W: Write> CrcWriter<W>
Trait Implementations
impl<W: Debug> Debug for CrcWriter<W>
[src]
impl<W: Debug> Debug for CrcWriter<W>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<W: Write> Write for CrcWriter<W>
[src]
impl<W: Write> Write for CrcWriter<W>
fn write(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this object, returning how many bytes were written. Read more
fn flush(&mut self) -> Result<()>
[src]
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
1.0.0[src]
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this write. Read more
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
1.0.0[src]
fn write_fmt(&mut self, fmt: Arguments) -> Result<(), Error>
Writes a formatted string into this writer, returning any error encountered. Read more
ⓘImportant traits for &'a mut Wfn by_ref(&mut self) -> &mut Self
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
Creates a "by reference" adaptor for this instance of Write
. Read more