pub struct RasterBuf {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
}Expand description
RGBA8 raster, sRGB color space, premultiplied alpha. Layout is
row-major, four bytes per pixel [R, G, B, A].
Fields§
§width: u32§height: u32§pixels: Vec<u8>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RasterBuf
impl RefUnwindSafe for RasterBuf
impl Send for RasterBuf
impl Sync for RasterBuf
impl Unpin for RasterBuf
impl UnsafeUnpin for RasterBuf
impl UnwindSafe for RasterBuf
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