pub trait ModelCompressor: Send + Sync {
// Required methods
fn compress(&self, data: &[u8]) -> Result<Vec<u8>>;
fn decompress(&self, data: &[u8]) -> Result<Vec<u8>>;
fn name(&self) -> &str;
}Expand description
Model-based compression interface.
Default implementation is a no-op (passthrough).
Enable ml-support feature for real neural mesh integration.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".