Trait ColorImageExt

Source
pub trait ColorImageExt {
    // Required methods
    fn from_vec_color32(size: [usize; 2], vec: Vec<Color32>) -> Self;
    fn from_color32_slice(size: [usize; 2], slice: &[Color32]) -> Self;
}
Expand description

egui::ColorImage Extender.

Required Methods§

Source

fn from_vec_color32(size: [usize; 2], vec: Vec<Color32>) -> Self

Source

fn from_color32_slice(size: [usize; 2], slice: &[Color32]) -> Self

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.

Implementations on Foreign Types§

Source§

impl ColorImageExt for ColorImage

Source§

fn from_vec_color32(size: [usize; 2], vec: Vec<Color32>) -> Self

Source§

fn from_color32_slice(size: [usize; 2], slice: &[Color32]) -> Self

Implementors§