Pixel

Trait Pixel 

Source
pub trait Pixel {
    // Required methods
    fn cover_mask() -> u64;
    fn bpp() -> usize;
    fn width(&self) -> usize;
    fn height(&self) -> usize;
    fn set<C: Color>(&mut self, id: (usize, usize), c: C);
    fn blend_pix<C: Color>(&mut self, id: (usize, usize), c: C, cover: u64);
}

Required Methods§

Source

fn cover_mask() -> u64

Source

fn bpp() -> usize

Source

fn width(&self) -> usize

Source

fn height(&self) -> usize

Source

fn set<C: Color>(&mut self, id: (usize, usize), c: C)

Source

fn blend_pix<C: Color>(&mut self, id: (usize, usize), c: C, cover: u64)

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§