pub struct LogViewerState {
pub last_viewport_height: u16,
pub last_visible_lines: usize,
pub selected_line: Option<usize>,
}Expand description
Separate state for StatefulWidget pattern.
Fields§
§last_viewport_height: u16Viewport height from last render (for page up/down).
last_visible_lines: usizeTotal visible line count from last render.
selected_line: Option<usize>Selected line index (for copy/selection features).
Trait Implementations§
Source§impl Clone for LogViewerState
impl Clone for LogViewerState
Source§fn clone(&self) -> LogViewerState
fn clone(&self) -> LogViewerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogViewerState
impl Debug for LogViewerState
Source§impl Default for LogViewerState
impl Default for LogViewerState
Source§fn default() -> LogViewerState
fn default() -> LogViewerState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogViewerState
impl RefUnwindSafe for LogViewerState
impl Send for LogViewerState
impl Sync for LogViewerState
impl Unpin for LogViewerState
impl UnsafeUnpin for LogViewerState
impl UnwindSafe for LogViewerState
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