pub trait Compressor: Send + Sync {
// Required methods
fn compress(&self, input: &str) -> CompressionResult;
fn name(&self) -> &'static str;
}Expand description
Trait for a single compression strategy.
Required Methods§
Sourcefn compress(&self, input: &str) -> CompressionResult
fn compress(&self, input: &str) -> CompressionResult
Apply this compression strategy to the input text.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".