Skip to main content

ImageCodec

Trait ImageCodec 

Source
pub trait ImageCodec {
    type Error: CodecError;
    type Warning: Debug + Display + Send + Sync + 'static;
    type Pool: ScratchPool;
}
Expand description

Common associated types shared by image codecs.

Required Associated Types§

Source

type Error: CodecError

Codec-specific error type.

Source

type Warning: Debug + Display + Send + Sync + 'static

Non-fatal warning type returned in successful decode outcomes.

Source

type Pool: ScratchPool

Caller-owned scratch pool type used to reuse allocations.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§