pub trait Pixmap {
// Required methods
fn width(&self) -> u32;
fn height(&self) -> u32;
fn pixel(&self, x: u32, y: u32) -> Option<Rgb>;
}Expand description
A small pixel image with transparency (prop art).
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".