rgpui_component/searchable_list/change.rs
1use crate::IndexPath;
2
3/// A single, atomic selection change proposed by the mode-strategy for a user interaction.
4///
5/// Passed as a slice to [`SearchableListDelegate::on_will_change`], giving the delegate
6/// a description of what the default strategy intends to do. The delegate may apply all,
7/// some, or none of the changes by mutating the `selection` argument directly.
8pub enum SearchableListChange {
9 /// Select the item at the given index path.
10 Select { index: IndexPath },
11 /// Deselect the item at the given index path.
12 Deselect { index: IndexPath },
13}