pub struct ImageData {
pub rgba: Vec<u8>,
pub width: u32,
pub height: u32,
}Expand description
Owned raw RGBA image data.
Fields§
§rgba: Vec<u8>Raw pixel data in row-major RGBA order (width * height * 4 bytes).
width: u32Image width in pixels.
height: u32Image height in pixels.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ImageData
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