Struct extendr_api::graphics::Raster
source · pub struct Raster<P: AsRef<[u32]>> {
pub pixels: P,
pub width: usize,
}
Expand description
A row-major array of pixels. One pixel is 32-bit, whose each byte represents alpha, blue, green, and red in the order.
Fields§
§pixels: P
§width: usize
Trait Implementations§
source§impl<P: PartialEq + AsRef<[u32]>> PartialEq for Raster<P>
impl<P: PartialEq + AsRef<[u32]>> PartialEq for Raster<P>
impl<P: AsRef<[u32]>> StructuralPartialEq for Raster<P>
Auto Trait Implementations§
impl<P> Freeze for Raster<P>where
P: Freeze,
impl<P> RefUnwindSafe for Raster<P>where
P: RefUnwindSafe,
impl<P> Send for Raster<P>where
P: Send,
impl<P> Sync for Raster<P>where
P: Sync,
impl<P> Unpin for Raster<P>where
P: Unpin,
impl<P> UnwindSafe for Raster<P>where
P: UnwindSafe,
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