pub struct TextureAsset {
pub bytes: Vec<u8>,
pub mime: String,
}Expand description
An embedded texture: raw encoded image bytes (glTF embeds the file as-is, no decoding).
Fields§
§bytes: Vec<u8>Encoded image bytes.
mime: String“image/png” or “image/jpeg”.
Trait Implementations§
Source§impl Clone for TextureAsset
impl Clone for TextureAsset
Source§fn clone(&self) -> TextureAsset
fn clone(&self) -> TextureAsset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextureAsset
impl RefUnwindSafe for TextureAsset
impl Send for TextureAsset
impl Sync for TextureAsset
impl Unpin for TextureAsset
impl UnsafeUnpin for TextureAsset
impl UnwindSafe for TextureAsset
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