pub trait PixelSink {
// Required method
fn draw_pixel(&mut self, x: u32, y: u32, rgba: Rgba<u8>);
}Expand description
Trait for pixel rendering backends.
Implementations of this trait define how individual pixels are rendered to a target. Different implementations support different output formats (PNG, PDF, etc.).