Skip to main content

DynDecoder

Trait DynDecoder 

Source
pub trait DynDecoder {
    // Required method
    fn decode(self: Box<Self>) -> Result<DecodeOutput, BoxedError>;
}
Expand description

Object-safe one-shot decoder.

Wraps Decode for dyn dispatch. Produced by DynDecodeJob::into_decoder.

Required Methods§

Source

fn decode(self: Box<Self>) -> Result<DecodeOutput, BoxedError>

Decode to owned pixels (consumes self).

Trait Implementations§

Source§

impl Debug for dyn DynDecoder + '_

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§