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§fn clone(&self) -> TablePersistState
fn clone(&self) -> TablePersistState
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 TablePersistState
impl Debug for TablePersistState
Source§impl Default for TablePersistState
impl Default for TablePersistState
Source§fn default() -> TablePersistState
fn default() -> TablePersistState
Returns the “default value” for a type. Read more
Source§impl PartialEq for TablePersistState
impl PartialEq for TablePersistState
impl StructuralPartialEq for TablePersistState
Auto Trait Implementations§
impl Freeze 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