Trait building_blocks::prelude::Compression[][src]

pub trait Compression {
    type Data;
    type CompressedData;
    fn compress(&self, data: &Self::Data) -> Compressed<Self>;
fn decompress(compressed: &Self::CompressedData) -> Self::Data; }
Expand description

An algorithm for: 1. compressing a specific type Data into type Compressed 2. decompressing Compressed back into Data

Associated Types

Required methods

Implementations on Foreign Types

Implementors