pub trait PixelTarget {
// Required methods
fn width(&self) -> usize;
fn height(&self) -> usize;
fn put_pixel(&mut self, x: usize, y: usize, color: Rgb888);
// Provided method
fn put_pixel_565(&mut self, x: usize, y: usize, rgb565: u16) { ... }
}Expand description
Required Methods§
fn width(&self) -> usize
fn height(&self) -> usize
fn put_pixel(&mut self, x: usize, y: usize, color: Rgb888)
Provided Methods§
Sourcefn put_pixel_565(&mut self, x: usize, y: usize, rgb565: u16)
fn put_pixel_565(&mut self, x: usize, y: usize, rgb565: u16)
Write a pre-packed RGB565 pixel (bit layout RRRRR_GGGGGG_BBBBB).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".