pub struct Screen { /* private fields */ }
Implementations§
source§impl Screen
impl Screen
pub fn pixel(&self, point: Point<u32>) -> Option<PaletteIdx>
pub fn set_pixel( &mut self, point: Point<u32>, color: PaletteIdx ) -> Result<(), ()>
pub fn pixels(&self) -> impl Iterator<Item = PaletteIdx> + '_
pub fn pixels_mut(&mut self) -> impl Iterator<Item = VolatilePixelPairMut<'_>>
pub fn as_bytes(&self) -> (VolatilePixelPair<'_>, &[u8; 16319])
sourcepub fn pixels_slice(&self) -> (VolatilePixelPair<'_>, &[PixelPair; 16319])
pub fn pixels_slice(&self) -> (VolatilePixelPair<'_>, &[PixelPair; 16319])
Can’t easily expose first two pixels.
sourcepub fn pixels_slice_mut(
&mut self
) -> (VolatilePixelPairMut<'_>, &mut [PixelPair; 16319])
pub fn pixels_slice_mut( &mut self ) -> (VolatilePixelPairMut<'_>, &mut [PixelPair; 16319])
Can’t easily expose first two pixels.
Auto Trait Implementations§
impl RefUnwindSafe for Screen
impl !Send for Screen
impl !Sync for Screen
impl Unpin for Screen
impl UnwindSafe for Screen
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