pub trait PatternFilter {
// Required methods
fn dilation() -> u32;
fn pixel_low_res(buf: &[Vec<Rgba8>], x: i32, y: i32) -> Rgba8;
fn pixel_high_res(buf: &[Vec<Rgba8>], p: &mut Rgba8, x: i32, y: i32);
}Expand description
Trait for pattern pixel access.
The buffer is a 2D grid stored as &[Vec<Rgba8>] where each inner Vec
is one row of pixels. This maps to the C++ row_ptr_cache pattern.
Required Methods§
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.