[][src]Trait comde::de::Decompressor

pub trait Decompressor {
    fn new() -> Self;
fn copy<R: Read, W: Write>(&self, source: R, dest: W) -> Result<u64>;
fn from_reader<R: Read, V: Decompress>(&self, reader: R) -> Result<V>
    where
        Self: Sized
; fn from_vec<V: Decompress>(&self, bytes: Vec<u8>) -> Result<V>
    where
        Self: Sized
, { ... } }

Required methods

fn new() -> Self

fn copy<R: Read, W: Write>(&self, source: R, dest: W) -> Result<u64>

fn from_reader<R: Read, V: Decompress>(&self, reader: R) -> Result<V> where
    Self: Sized

Loading content...

Provided methods

fn from_vec<V: Decompress>(&self, bytes: Vec<u8>) -> Result<V> where
    Self: Sized

Loading content...

Implementors

impl Decompressor for BrotliDecompressor[src]

impl Decompressor for DeflateDecompressor[src]

impl Decompressor for SnappyDecompressor[src]

impl Decompressor for StoredDecompressor[src]

impl Decompressor for XzDecompressor[src]

impl Decompressor for ZstdDecompressor[src]

Loading content...