pub struct CellBackend { /* private fields */ }Expand description
Styled text cells. Works everywhere, so every feature must work here.
Trait Implementations§
Source§impl Backend for CellBackend
impl Backend for CellBackend
Source§fn scroll(
&mut self,
_from: &Grid,
to: &Grid,
area: Rect,
rows: i32,
out: &mut dyn Write,
) -> Result<()>
fn scroll( &mut self, _from: &Grid, to: &Grid, area: Rect, rows: i32, out: &mut dyn Write, ) -> Result<()>
Has the terminal shift the band of rows the scrolled area spans, as vim and Claude Code do, so only the lines that come into view and the columns that stay put (rail, sidebar, minimap) are sent after it. Rewriting every row instead is what shows as a scan over a slow link, in tmux especially. A whole-width region works in every terminal, which left and right margins don’t. The present that follows closes the synchronized update this opens, so the shift and the repair land as one frame.
fn present(&mut self, grid: &Grid, out: &mut dyn Write) -> Result<()>
Source§fn invalidate(&mut self)
fn invalidate(&mut self)
Forgets what the terminal shows, so the next present redraws everything.
Source§fn gliding(&self) -> Option<Duration>
fn gliding(&self) -> Option<Duration>
How often a scroll under way wants to move, if there is one.
Auto Trait Implementations§
impl Freeze for CellBackend
impl RefUnwindSafe for CellBackend
impl Send for CellBackend
impl Sync for CellBackend
impl Unpin for CellBackend
impl UnsafeUnpin for CellBackend
impl UnwindSafe for CellBackend
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