pub struct TableSelectionSnapshot { /* private fields */ }Expand description
Selection in a table snapshot, including units outside the viewport.
Implementations§
Source§impl TableSelectionSnapshot
impl TableSelectionSnapshot
pub fn target(&self) -> SelectionTarget
pub fn current_column(&self) -> Option<usize>
pub fn multiple(&self) -> bool
Sourcepub fn drag_range(&self) -> Option<[(usize, usize); 2]>
pub fn drag_range(&self) -> Option<[(usize, usize); 2]>
Endpoints of the last replacement drag, in row and logical column indices.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Number of selected rows, cells, or columns, depending on the target.
pub fn is_empty(&self) -> bool
pub fn keys(&self) -> &BTreeSet<RowKey>
pub fn columns(&self) -> &BTreeSet<usize>
Sourcepub fn cell_keys(&self, column: usize) -> Option<&BTreeSet<RowKey>>
pub fn cell_keys(&self, column: usize) -> Option<&BTreeSet<RowKey>>
Explicit cell selection in a column, without expanding whole-row or whole-column selections.
pub fn contains_cell(&self, row: RowKey, column: usize) -> bool
pub fn row_header_selected(&self, row: RowKey) -> bool
pub fn row_header_action( &self, index: usize, operation: RowSelection, ) -> TableSelectionAction
Trait Implementations§
Source§impl Clone for TableSelectionSnapshot
impl Clone for TableSelectionSnapshot
Source§impl Debug for TableSelectionSnapshot
impl Debug for TableSelectionSnapshot
impl Eq for TableSelectionSnapshot
Source§impl PartialEq for TableSelectionSnapshot
impl PartialEq for TableSelectionSnapshot
impl StructuralPartialEq for TableSelectionSnapshot
Auto Trait Implementations§
impl Forget for TableSelectionSnapshot
impl Freeze for TableSelectionSnapshot
impl Move for TableSelectionSnapshot
impl RefUnwindSafe for TableSelectionSnapshot
impl Send for TableSelectionSnapshot
impl Sync for TableSelectionSnapshot
impl Unpin for TableSelectionSnapshot
impl UnsafeUnpin for TableSelectionSnapshot
impl UnwindSafe for TableSelectionSnapshot
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