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§
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)
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.