pub trait ImageDataType:
Sealed
+ Pod
+ Copy
+ Default
+ 'static
+ Debug
+ PartialEq
+ Send
+ Sync {
const DATA_TYPE_ID: DataTypeTag;
// Required methods
fn from_f64(f: f64) -> Self;
fn to_f64(self) -> f64;
}Expand description
Image data type trait. Implementors must be “bag-of-bits” types with no padding,
guaranteed by the bytemuck::Pod bound.
Required Associated Constants§
Sourceconst DATA_TYPE_ID: DataTypeTag
const DATA_TYPE_ID: DataTypeTag
ID of this data type. Different types must have different values.
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.