pub struct EmbeddedTexture {
pub key: String,
pub data: Vec<u8>,
}Expand description
§========================================================================== Embedded Assets
Embedded texture bundled within the WASM module
This allows plugins to ship texture assets (icons, patterns, LUTs) directly inside the WASM binary using include_bytes!(). The host will decode and register these at load time.
Fields§
§key: StringUnique key for runtime lookup (e.g., “icon_play”, “lut_vintage”)
data: Vec<u8>Encoded image data (PNG, JPEG, or WebP format)
Trait Implementations§
Source§impl Clone for EmbeddedTexture
impl Clone for EmbeddedTexture
Source§fn clone(&self) -> EmbeddedTexture
fn clone(&self) -> EmbeddedTexture
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddedTexture
impl RefUnwindSafe for EmbeddedTexture
impl Send for EmbeddedTexture
impl Sync for EmbeddedTexture
impl Unpin for EmbeddedTexture
impl UnwindSafe for EmbeddedTexture
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more