pub struct RasterImage {
pub width: u32,
pub height: u32,
pub rgba: Vec<u8>,
pub id: u64,
}Expand description
Decoded raster image: sRGB RGBA8, straight alpha.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
rgba: Vec<u8>width * height * 4 bytes, row by row.
id: u64Stable identity for renderer-side caches.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RasterImage
impl RefUnwindSafe for RasterImage
impl Send for RasterImage
impl Sync for RasterImage
impl Unpin for RasterImage
impl UnsafeUnpin for RasterImage
impl UnwindSafe for RasterImage
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