pub struct Raster {
pub width: usize,
pub height: usize,
pub pixels: Vec<u8>,
}Expand description
An indexed-color pixel canvas produced by a raster format such as RIPscrip.
Fields§
§width: usizePixel width of the canvas.
height: usizePixel height of the canvas.
pixels: Vec<u8>Row-major palette indexes, one byte per pixel.
Trait Implementations§
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