Trait ClonerOverlay

Source
pub trait ClonerOverlay<const W: usize, const C: usize>: Sealed {
    // Required method
    unsafe fn overlay(&self, with: &Image<&[u8], W>) -> Image<Vec<u8>, C>;
}
Expand description

Overlay but owned

Required Methods§

Source

unsafe fn overlay(&self, with: &Image<&[u8], W>) -> Image<Vec<u8>, C>

Overlay with => self (does not blend)

§Safety

UB if a.width != b.width || a.height != b.height

Implementors§

Source§

impl ClonerOverlay<4, 3> for ImageCloner<'_, 3>

Source§

impl ClonerOverlay<4, 4> for ImageCloner<'_, 4>