#[repr(C)]pub enum SelectionMode {
Move = 0,
Extend = 1,
Delete = 2,
}Expand description
What to do with the selection after moving.
Variants§
Move = 0
Collapse selection to cursor, then move (plain arrow key).
Extend = 1
Extend selection from anchor to new position (Shift+arrow).
Delete = 2
Expand cursor to range in the given direction, then delete the range (Backspace/Delete). If a range already exists, just delete it.
Trait Implementations§
Source§impl Clone for SelectionMode
impl Clone for SelectionMode
Source§fn clone(&self) -> SelectionMode
fn clone(&self) -> SelectionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SelectionMode
impl Debug for SelectionMode
Source§impl Hash for SelectionMode
impl Hash for SelectionMode
Source§impl PartialEq for SelectionMode
impl PartialEq for SelectionMode
Source§fn eq(&self, other: &SelectionMode) -> bool
fn eq(&self, other: &SelectionMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SelectionMode
impl Eq for SelectionMode
impl StructuralPartialEq for SelectionMode
Auto Trait Implementations§
impl Freeze for SelectionMode
impl RefUnwindSafe for SelectionMode
impl Send for SelectionMode
impl Sync for SelectionMode
impl Unpin for SelectionMode
impl UnsafeUnpin for SelectionMode
impl UnwindSafe for SelectionMode
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