pub trait BandElement:
Sealed
+ Copy
+ Default
+ Send
+ Sync
+ 'static {
const KIND: BandElementKind;
// Required method
fn from_pixel_data(pixels: PixelData) -> Result<Vec<Self>>;
}Expand description
Sealed primitive types accepted by homogeneous band-set decode APIs.
Required Associated Constants§
Sourceconst KIND: BandElementKind
const KIND: BandElementKind
Runtime kind corresponding to this primitive.
Required Methods§
Sourcefn from_pixel_data(pixels: PixelData) -> Result<Vec<Self>>
fn from_pixel_data(pixels: PixelData) -> Result<Vec<Self>>
Converts a native decoded buffer when its representation is compatible.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".