pub trait ArrayData {
type DataType;
// Required methods
fn data(&self) -> Self::DataType;
fn add(lhs: Self::DataType, other: Self::DataType) -> Self::DataType;
fn sub(lhs: Self::DataType, other: Self::DataType) -> Self::DataType;
}Expand description
Hack to get around lack of const generics. See comment on sum_image_pixels.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".