pub struct BlocksSurface { /* private fields */ }Expand description
The stateful blocks presenter: renders a pixel surface as quarter-block cells once, then repaints only the cells whose pixels changed.
Implementations§
Source§impl BlocksSurface
impl BlocksSurface
Sourcepub fn render_frame<W: Sink>(
&mut self,
out: &mut W,
surface: &Surface,
) -> Result<usize>
pub fn render_frame<W: Sink>( &mut self, out: &mut W, surface: &Surface, ) -> Result<usize>
Write one frame’s cells and return the bytes written. A fresh or resized frame clears the screen and repaints every cell; a later frame repaints only the cells whose pixels changed, inside synchronized output, with no clear that would erase the rest. An unchanged frame writes nothing.
Trait Implementations§
Source§impl Debug for BlocksSurface
impl Debug for BlocksSurface
Auto Trait Implementations§
impl Forget for BlocksSurface
impl Freeze for BlocksSurface
impl Move for BlocksSurface
impl RefUnwindSafe for BlocksSurface
impl Send for BlocksSurface
impl Sync for BlocksSurface
impl Unpin for BlocksSurface
impl UnsafeUnpin for BlocksSurface
impl UnwindSafe for BlocksSurface
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