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§
Sourcetype Error: CodecError
type Error: CodecError
Codec-specific error type.
Sourcetype Warning: Debug + Display + Send + Sync + 'static
type Warning: Debug + Display + Send + Sync + 'static
Non-fatal warning type returned in successful decode outcomes.
Sourcetype Pool: ScratchPool
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".