pub trait Pixel:
RegisteredPrimitive
+ Into<u32>
+ Into<i32>
+ Debug
+ Display
+ Send
+ Sync
+ 'static {
type Coeff: Coefficient;
// Required method
fn type_enum() -> PixelType;
// Provided method
fn to_asm_stride(in_stride: usize) -> isize { ... }
}
Expand description
A type that can be used as a pixel type.
Required Associated Types§
type Coeff: Coefficient
Required Methods§
Provided Methods§
Sourcefn to_asm_stride(in_stride: usize) -> isize
fn to_asm_stride(in_stride: usize) -> isize
Converts stride in pixels to stride in bytes.
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.