tiff::encoder::compression

Trait CompressionAlgorithm

Source
pub trait CompressionAlgorithm {
    // Required method
    fn write_to<W: Write>(
        &mut self,
        writer: &mut W,
        bytes: &[u8],
    ) -> Result<u64, Error>;
}
Expand description

An algorithm used for compression

Required Methods§

Source

fn write_to<W: Write>( &mut self, writer: &mut W, bytes: &[u8], ) -> Result<u64, Error>

The algorithm writes data directly into the writer. It returns the total number of bytes written.

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§