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.