png

Trait Parameter

Source
pub trait Parameter<Object> {
    // Required method
    fn set_param(self, _: &mut Object);
}
Expand description

Configuration parameter trait

Required Methods§

Implementors§

Source§

impl<R: Read> Parameter<Decoder<R>> for Transformations

Source§

impl<W: Write> Parameter<Encoder<W>> for BitDepth

Source§

impl<W: Write> Parameter<Encoder<W>> for ColorType

Source§

impl<W: Write> Parameter<Encoder<W>> for FilterType

Source§

impl<W: Write, C: Into<Compression>> Parameter<Encoder<W>> for C

Set compression param for a Compression or any type that can transform into a Compression, notably deflate::Compression and deflate::CompressionOptions which “just work”.