Trait png::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”.