[][src]Trait comde::com::Compressor

pub trait Compressor {
    fn new() -> Self;
fn compress<W: Write + Seek, R: Read>(
        &self,
        writer: &mut W,
        reader: &mut R
    ) -> Result<ByteCount>; fn to_vec<V: Compress>(&self, data: V) -> Result<Vec<u8>> { ... } }

Required methods

fn new() -> Self

fn compress<W: Write + Seek, R: Read>(
    &self,
    writer: &mut W,
    reader: &mut R
) -> Result<ByteCount>

Loading content...

Provided methods

fn to_vec<V: Compress>(&self, data: V) -> Result<Vec<u8>>

Loading content...

Implementors

impl Compressor for BrotliCompressor[src]

impl Compressor for DeflateCompressor[src]

impl Compressor for SnappyCompressor[src]

impl Compressor for StoredCompressor[src]

impl Compressor for XzCompressor[src]

impl Compressor for ZstdCompressor[src]

Loading content...