pub struct TablePersistState {
pub selected: Option<usize>,
pub offset: usize,
pub sort_column: Option<usize>,
pub sort_ascending: bool,
pub filter: String,
}Expand description
Persistable state for a TableState.
This struct contains only the fields that should be persisted across sessions. Derived/cached values are not included.
Fields§
§selected: Option<usize>Selected row index.
offset: usizeScroll offset (first visible row).
sort_column: Option<usize>Current sort column index.
sort_ascending: boolSort direction (true = ascending, false = descending).
filter: StringActive filter text.
Trait Implementations§
Source§impl Clone for TablePersistState
impl Clone for TablePersistState
Source§impl Debug for TablePersistState
impl Debug for TablePersistState
Source§impl Default for TablePersistState
impl Default for TablePersistState
Source§impl PartialEq for TablePersistState
impl PartialEq for TablePersistState
impl StructuralPartialEq for TablePersistState
Auto Trait Implementations§
impl Forget for TablePersistState
impl Freeze for TablePersistState
impl Move for TablePersistState
impl RefUnwindSafe for TablePersistState
impl Send for TablePersistState
impl Sync for TablePersistState
impl Unpin for TablePersistState
impl UnsafeUnpin for TablePersistState
impl UnwindSafe for TablePersistState
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