pub struct ListPersistState {
pub selected: Option<usize>,
pub offset: usize,
}Expand description
Persistable state for a ListState.
Contains the user-facing state that should survive sessions.
Fields§
§selected: Option<usize>Selected item index.
offset: usizeScroll offset (first visible item).
Trait Implementations§
Source§impl Clone for ListPersistState
impl Clone for ListPersistState
Source§fn clone(&self) -> ListPersistState
fn clone(&self) -> ListPersistState
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 ListPersistState
impl Debug for ListPersistState
Source§impl Default for ListPersistState
impl Default for ListPersistState
Source§fn default() -> ListPersistState
fn default() -> ListPersistState
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListPersistState
impl PartialEq for ListPersistState
impl StructuralPartialEq for ListPersistState
Auto Trait Implementations§
impl Freeze for ListPersistState
impl RefUnwindSafe for ListPersistState
impl Send for ListPersistState
impl Sync for ListPersistState
impl Unpin for ListPersistState
impl UnwindSafe for ListPersistState
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