Trait tiff::encoder::compression::Compression
source · pub trait Compression: CompressionAlgorithm {
const COMPRESSION_METHOD: CompressionMethod;
// Required method
fn get_algorithm(&self) -> Compressor;
}
Expand description
An algorithm used for compression with associated enums and optional configurations.
Required Associated Constants§
sourceconst COMPRESSION_METHOD: CompressionMethod
const COMPRESSION_METHOD: CompressionMethod
The corresponding tag to the algorithm.
Required Methods§
sourcefn get_algorithm(&self) -> Compressor
fn get_algorithm(&self) -> Compressor
Method to optain a type that can store each variant of comression algorithm.
Object Safety§
This trait is not object safe.