pub trait ListSelection {
// Required methods
fn count(&self) -> usize;
fn is_selected(&self, n: usize) -> bool;
fn lead_selection(&self) -> Option<usize>;
// Provided method
fn scroll_selected(&self) -> bool { ... }
}Expand description
Trait for list-selection.
Required Methods§
Sourcefn is_selected(&self, n: usize) -> bool
fn is_selected(&self, n: usize) -> bool
Is selected.
Sourcefn lead_selection(&self) -> Option<usize>
fn lead_selection(&self) -> Option<usize>
Selection lead.
Provided Methods§
Sourcefn scroll_selected(&self) -> bool
fn scroll_selected(&self) -> bool
Scroll the selection instead of the offset.