pub struct HeapScreen {
width: u32,
height: u32,
stride: u32,
bpp: u8,
data: Box<[u8]>,
}Expand description
A heap-allocated offscreen pixel buffer.
Fields§
§width: u32§height: u32§stride: u32§bpp: u8§data: Box<[u8]>Implementations§
Trait Implementations§
Source§impl Clone for HeapScreen
impl Clone for HeapScreen
Source§fn clone(&self) -> HeapScreen
fn clone(&self) -> HeapScreen
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HeapScreen
impl Debug for HeapScreen
Source§impl DisplayScreen for HeapScreen
impl DisplayScreen for HeapScreen
Source§fn pixels_mut(&mut self) -> *mut u8
fn pixels_mut(&mut self) -> *mut u8
Mutable pointer to the raw pixel data.
Auto Trait Implementations§
impl Freeze for HeapScreen
impl RefUnwindSafe for HeapScreen
impl Send for HeapScreen
impl Sync for HeapScreen
impl Unpin for HeapScreen
impl UnsafeUnpin for HeapScreen
impl UnwindSafe for HeapScreen
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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