pub enum SelectionGranularity {
Caret,
Word,
Line,
Paragraph,
}Expand description
Variants§
Caret
Collapsed caret (a single tap places the cursor).
Word
The word under the tap.
Line
The line under the tap (delimited by \n).
Paragraph
The paragraph under the tap (delimited by blank lines).
Trait Implementations§
Source§impl Clone for SelectionGranularity
impl Clone for SelectionGranularity
Source§fn clone(&self) -> SelectionGranularity
fn clone(&self) -> SelectionGranularity
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 moreimpl Copy for SelectionGranularity
Source§impl Debug for SelectionGranularity
impl Debug for SelectionGranularity
impl Eq for SelectionGranularity
Source§impl PartialEq for SelectionGranularity
impl PartialEq for SelectionGranularity
Source§fn eq(&self, other: &SelectionGranularity) -> bool
fn eq(&self, other: &SelectionGranularity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectionGranularity
Auto Trait Implementations§
impl Freeze for SelectionGranularity
impl RefUnwindSafe for SelectionGranularity
impl Send for SelectionGranularity
impl Sync for SelectionGranularity
impl Unpin for SelectionGranularity
impl UnsafeUnpin for SelectionGranularity
impl UnwindSafe for SelectionGranularity
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