pub struct ImageData {
pub info: TextureInfo,
pub data: Vec<u8>,
}Expand description
Minimal header to describe image data, with a TextureInfo and a Vec<u8> of actual image data.
Fields§
§info: TextureInfogfx::TextureInfo describing the texture
data: Vec<u8>Vector of linear image data tightly packed
Auto Trait Implementations§
impl Freeze for ImageData
impl RefUnwindSafe for ImageData
impl Send for ImageData
impl Sync for ImageData
impl Unpin for ImageData
impl UnsafeUnpin for ImageData
impl UnwindSafe for ImageData
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