pub struct MultiSelectState {
pub items: Vec<String>,
pub cursor: usize,
pub selected: HashSet<usize>,
}Expand description
State for a multi-select list.
Like ListState but allows toggling multiple items with Space.
Fields§
§items: Vec<String>§cursor: usize§selected: HashSet<usize>Implementations§
Auto Trait Implementations§
impl Freeze for MultiSelectState
impl RefUnwindSafe for MultiSelectState
impl Send for MultiSelectState
impl Sync for MultiSelectState
impl Unpin for MultiSelectState
impl UnsafeUnpin for MultiSelectState
impl UnwindSafe for MultiSelectState
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