pub trait Sample {
type Pixel: HardwarePixel;
// Required method
fn sample(
&mut self,
rect: &Rectangle<Virtual>,
) -> impl PixelView<Pixel = Self::Pixel>;
}Expand description
Types that can provide direct hardware access to individual pixels within a given Virtual rectangle shaped selection
Required Associated Types§
Sourcetype Pixel: HardwarePixel
type Pixel: HardwarePixel
The underlying hardware pixel type
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.