Skip to main content

DiffImage

Trait DiffImage 

Source
pub trait DiffImage {
    // Required method
    fn diff_inplace(&mut self, other: &Self);
}
Expand description

Image types that can be diffed.

Required Methods§

Source

fn diff_inplace(&mut self, other: &Self)

Subtract the pixel values of other from self in-place.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<P> DiffImage for ImageBuffer<P, Vec<u8>>
where P: Pixel<Subpixel = u8> + 'static,

Source§

fn diff_inplace(&mut self, other: &Self)

Implementors§