pub struct RowCache { /* private fields */ }Expand description
The rows of the message on show, built once per layout. The pager
draws every frame, its status line counts the rows, and each
motion key needs the count too: rebuilt from the text each time, a
big patch or log (tens of thousands of lines) cost tens of
milliseconds a keystroke. A front end keeps one beside the view it
shows and drops it with that view; anything that changes the rows
(the width, a toggle, a :set) is in the key.
Implementations§
Source§impl RowCache
impl RowCache
Sourcepub fn rows(
&self,
view: &MessageView,
width: usize,
full_headers: bool,
style: &PagerStyle<'_>,
hide_quoted: bool,
) -> Rc<Vec<Row>>
pub fn rows( &self, view: &MessageView, width: usize, full_headers: bool, style: &PagerStyle<'_>, hide_quoted: bool, ) -> Rc<Vec<Row>>
pager_rows, from the cache when nothing it depends on moved.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RowCache
impl !RefUnwindSafe for RowCache
impl !Send for RowCache
impl !Sync for RowCache
impl Unpin for RowCache
impl UnsafeUnpin for RowCache
impl UnwindSafe for RowCache
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