pub trait TextureHandleExt {
// Required methods
fn from_vec_u8(
ctx: &Context,
debug_name: &str,
size: [usize; 2],
vec: Vec<u8>,
) -> TextureHandle;
fn from_u8_slice(
ctx: &Context,
debug_name: &str,
size: [usize; 2],
slice: &[u8],
) -> TextureHandle;
fn from_vec_color32(
ctx: &Context,
debug_name: &str,
size: [usize; 2],
vec: Vec<Color32>,
) -> TextureHandle;
fn from_color32_slice(
ctx: &Context,
debug_name: &str,
size: [usize; 2],
slice: &[Color32],
) -> TextureHandle;
}
Expand description
egui::TextureHandle Extender.
Required Methods§
Sourcefn from_vec_u8(
ctx: &Context,
debug_name: &str,
size: [usize; 2],
vec: Vec<u8>,
) -> TextureHandle
fn from_vec_u8( ctx: &Context, debug_name: &str, size: [usize; 2], vec: Vec<u8>, ) -> TextureHandle
egui::TextureHandle from Vec u8
fn from_u8_slice( ctx: &Context, debug_name: &str, size: [usize; 2], slice: &[u8], ) -> TextureHandle
fn from_vec_color32( ctx: &Context, debug_name: &str, size: [usize; 2], vec: Vec<Color32>, ) -> TextureHandle
fn from_color32_slice( ctx: &Context, debug_name: &str, size: [usize; 2], slice: &[Color32], ) -> TextureHandle
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.