pub struct DecoderOptions {
    pub use_threads: bool,
    pub color_mode: ColorMode,
}
Expand description

An options struct for Decoder

For usage, see Decoder::new_with_options

Fields§

§use_threads: bool

If true, use multi-threaded decoding. Enabled by default

§color_mode: ColorMode

Output colorspace. ColorMode::Rgba by default. Affects Frame output

Trait Implementations§

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.