pub struct LogViewerState {
pub last_viewport_height: u16,
pub last_visible_lines: usize,
pub selected_line: Option<usize>,
pub list_state: VirtualizedListState,
}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).
list_state: VirtualizedListStateVariable-height Fenwick state for rendered lines.
Implementations§
Source§impl LogViewerState
impl LogViewerState
Sourcepub fn offset_of_item(&self, idx: usize) -> u32
pub fn offset_of_item(&self, idx: usize) -> u32
Return the Fenwick row offset of display item idx.
Trait Implementations§
Source§impl Clone for LogViewerState
impl Clone for LogViewerState
Source§impl Debug for LogViewerState
impl Debug for LogViewerState
Auto Trait Implementations§
impl Forget for LogViewerState
impl Freeze for LogViewerState
impl Move 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