pub trait Packer: Send + Sync {
// Required methods
fn pack(&self, input: PackInput) -> Result<PackOutput, CoreError>;
fn name(&self) -> &'static str;
}Expand description
Common interface implemented by all packing algorithms.
pub trait Packer: Send + Sync {
// Required methods
fn pack(&self, input: PackInput) -> Result<PackOutput, CoreError>;
fn name(&self) -> &'static str;
}Common interface implemented by all packing algorithms.