tiff::encoder::compression

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

Source

const COMPRESSION_METHOD: CompressionMethod

The corresponding tag to the algorithm.

Required Methods§

Source

fn get_algorithm(&self) -> Compressor

Method to optain a type that can store each variant of comression algorithm.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§