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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more