Compressor

Trait Compressor 

Source
pub trait Compressor {
    // Required method
    fn compress(&mut self, input: &[u8], output: &mut Vec<u8>) -> Result<()>;

    // Provided method
    fn flush(&mut self, _output: &mut Vec<u8>) -> Result<()> { ... }
}
Expand description

Trait implemented by compression algorithms used when writing FST data.

Required Methods§

Source

fn compress(&mut self, input: &[u8], output: &mut Vec<u8>) -> Result<()>

Provided Methods§

Source

fn flush(&mut self, _output: &mut Vec<u8>) -> Result<()>

Implementors§