Skip to main content

ImageData

Trait ImageData 

Source
pub trait ImageData {
    // Required method
    fn to_image_data(&self) -> Vec<Vec<PixelColor>>;
}
Expand description

A marker trait allowing several ways to describe the pixel data for an Image trace.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ImageData for Vec<Vec<Rgb>>

Source§

impl ImageData for Vec<Vec<Rgba>>

Implementors§