pub struct BufferDisplay {
pub width: usize,
pub height: usize,
pub buffer: Vec<Color>,
}Expand description
In-memory framebuffer driver for tests and headless rendering.
Fields§
§width: usizeWidth of the framebuffer in pixels.
height: usizeHeight of the framebuffer in pixels.
buffer: Vec<Color>Pixel buffer stored in row-major order.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BufferDisplay
impl RefUnwindSafe for BufferDisplay
impl Send for BufferDisplay
impl Sync for BufferDisplay
impl Unpin for BufferDisplay
impl UnsafeUnpin for BufferDisplay
impl UnwindSafe for BufferDisplay
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