Skip to main content

ModelCompressor

Trait ModelCompressor 

Source
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§

Source

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

Compress data using model-based techniques.

Source

fn decompress(&self, data: &[u8]) -> Result<Vec<u8>>

Decompress model-compressed data.

Source

fn name(&self) -> &str

Get the name of this compressor.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§