pub enum SelectionKind {
None,
Text,
Cells(CellRange),
Mixed {
cell_range: CellRange,
text_before: bool,
text_after: bool,
},
}Expand description
Describes what kind of selection the cursor currently has.
Variants§
None
No selection (position == anchor).
Text
Normal text selection within a single cell or outside any table.
Cells(CellRange)
Rectangular cell selection within a table.
Mixed
Selection crosses a table boundary (starts/ends outside the table).
The table portion is a rectangular cell range; text_before /
text_after indicate whether text outside the table is also selected.
Trait Implementations§
Source§impl Clone for SelectionKind
impl Clone for SelectionKind
Source§fn clone(&self) -> SelectionKind
fn clone(&self) -> SelectionKind
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 SelectionKind
impl Debug for SelectionKind
Source§impl PartialEq for SelectionKind
impl PartialEq for SelectionKind
impl Eq for SelectionKind
impl StructuralPartialEq for SelectionKind
Auto Trait Implementations§
impl Freeze for SelectionKind
impl RefUnwindSafe for SelectionKind
impl Send for SelectionKind
impl Sync for SelectionKind
impl Unpin for SelectionKind
impl UnsafeUnpin for SelectionKind
impl UnwindSafe for SelectionKind
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