Filter

Trait Filter 

Source
pub trait Filter: for<'a> From<&'a Options> {
    // Required methods
    fn apply<W: Write>(&mut self, sink: W, line: &[u8]) -> Result<()>;
    fn reset(&mut self, opts: &Options);
}
Expand description

A filter selection algorithm.

Required Methods§

Source

fn apply<W: Write>(&mut self, sink: W, line: &[u8]) -> Result<()>

Apply a filter and write the result to the sink.

Source

fn reset(&mut self, opts: &Options)

Reset the filter to encode an image with the given options.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§