pub struct RawImage {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
}Expand description
Uncompressed RGBA8 pixels returned by a backend.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
rgba: Vec<u8>Row-major RGBA bytes, width * height * 4 long, no row padding.
Trait Implementations§
impl Eq for RawImage
impl StructuralPartialEq for RawImage
Auto Trait Implementations§
impl Forget for RawImage
impl Freeze for RawImage
impl RefUnwindSafe for RawImage
impl Send for RawImage
impl Sync for RawImage
impl Unpin for RawImage
impl UnsafeUnpin for RawImage
impl UnwindSafe for RawImage
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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