pub struct Raster {
pub width: u32,
pub height: u32,
pub pixels: Vec<u8>,
}Expand description
An image in 8-bit RGBA, with straight alpha.
Fields§
§width: u32§height: u32§pixels: Vec<u8>Trait Implementations§
impl StructuralPartialEq for Raster
Auto Trait Implementations§
impl Freeze for Raster
impl RefUnwindSafe for Raster
impl Send for Raster
impl Sync for Raster
impl Unpin for Raster
impl UnsafeUnpin for Raster
impl UnwindSafe for Raster
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