pub struct Framebuffer<T, F = Rgba8888>where
F: Format,{ /* private fields */ }Expand description
An in-memory buffer for reading and writing pixels.
Trait Implementations§
Source§impl<T, F> AsMut<T> for Framebuffer<T, F>where
F: Format,
impl<T, F> AsMut<T> for Framebuffer<T, F>where
F: Format,
Source§impl<T, F> AsRef<T> for Framebuffer<T, F>where
F: Format,
impl<T, F> AsRef<T> for Framebuffer<T, F>where
F: Format,
Source§impl<T, F> DrawTarget for Framebuffer<T, F>
Implements DrawTarget by delegating to GridWrite.
impl<T, F> DrawTarget for Framebuffer<T, F>
Implements DrawTarget by delegating to GridWrite.
Source§type Error = Infallible
type Error = Infallible
Errors occur when the drawing operation fails. Read more
Source§fn draw_pixel(
&mut self,
pos: Pos,
color: Pixel<Self::Format>,
) -> Result<(), Self::Error>
fn draw_pixel( &mut self, pos: Pos, color: Pixel<Self::Format>, ) -> Result<(), Self::Error>
Draws a single pixel at the specified coordinates with the given color. Read more
Auto Trait Implementations§
impl<T, F> Freeze for Framebuffer<T, F>where
T: Freeze,
impl<T, F> RefUnwindSafe for Framebuffer<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for Framebuffer<T, F>
impl<T, F> Sync for Framebuffer<T, F>
impl<T, F> Unpin for Framebuffer<T, F>
impl<T, F> UnsafeUnpin for Framebuffer<T, F>where
T: UnsafeUnpin,
impl<T, F> UnwindSafe for Framebuffer<T, F>where
T: UnwindSafe,
F: 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