//! Compression interface definitions.
//!//! Defines the standard interface that all compression algorithms must implement.
usecrate::error::Result;/// Compression interface trait.
////// All compression algorithms must implement this interface.
pubtraitCompressionInterface{/// Compresses data.
////// # Arguments
////// * `data` - The raw data to compress
////// # Returns
////// The compressed data.
fncompress(&self, data:&[u8])->Result<Vec<u8>>;/// Decompresses data (mainly used for verification).
////// # Arguments
////// * `compressed_data` - The compressed data
////// # Returns
////// The decompressed original data.
fndecompress(&self, compressed_data:&[u8])->Result<Vec<u8>>;/// Returns the name of the compression algorithm.
fnget_name(&self)->&'staticstr;}