pub struct ViewDataUpdater<'view_data> { /* private fields */ }Expand description
An updater utility for a ViewData.
Implementations§
Source§impl<'view_data> ViewDataUpdater<'view_data>
impl<'view_data> ViewDataUpdater<'view_data>
Sourcepub fn clear_body(&mut self)
pub fn clear_body(&mut self)
Clear just the body of the view data.
Sourcepub fn ensure_line_visible(&mut self, row_index: usize)
pub fn ensure_line_visible(&mut self, row_index: usize)
Set the line that must be visible during render.
Sourcepub fn ensure_column_visible(&mut self, column_index: usize)
pub fn ensure_column_visible(&mut self, column_index: usize)
Set the column to must be visible during render.
Sourcepub fn set_show_title(&mut self, show: bool)
pub fn set_show_title(&mut self, show: bool)
Set if to show title.
Sourcepub fn set_show_help(&mut self, show: bool)
pub fn set_show_help(&mut self, show: bool)
Set if to show help.
Sourcepub fn push_leading_line(&mut self, view_line: ViewLine)
pub fn push_leading_line(&mut self, view_line: ViewLine)
Push a new leading line to the view data.
Sourcepub fn push_lines(&mut self, lines: &str)
pub fn push_lines(&mut self, lines: &str)
Push a set of new body lines to the view data automatically split on newlines.
Sourcepub fn push_trailing_line(&mut self, view_line: ViewLine)
pub fn push_trailing_line(&mut self, view_line: ViewLine)
Push a new trailing line to the view data.
Sourcepub fn set_retain_scroll_position(&mut self, value: bool)
pub fn set_retain_scroll_position(&mut self, value: bool)
Set the scroll position retain value of the view data.
Sourcepub fn reset_scroll_position(&mut self)
pub fn reset_scroll_position(&mut self)
Reset the scroll position of the view data.
Trait Implementations§
Auto Trait Implementations§
impl<'view_data> !UnwindSafe for ViewDataUpdater<'view_data>
impl<'view_data> Freeze for ViewDataUpdater<'view_data>
impl<'view_data> RefUnwindSafe for ViewDataUpdater<'view_data>
impl<'view_data> Send for ViewDataUpdater<'view_data>
impl<'view_data> Sync for ViewDataUpdater<'view_data>
impl<'view_data> Unpin for ViewDataUpdater<'view_data>
impl<'view_data> UnsafeUnpin for ViewDataUpdater<'view_data>
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