pub enum SelectionUnit {
Word,
Line,
Paragraph,
All,
}Expand description
A semantic unit of text to be selected.
Variants§
Word
The word surrounding the current cursor position.
Line
The line containing the current cursor position.
Paragraph
The paragraph containing the current cursor position.
All
The entire document text.
Trait Implementations§
Source§impl Clone for SelectionUnit
impl Clone for SelectionUnit
Source§fn clone(&self) -> SelectionUnit
fn clone(&self) -> SelectionUnit
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 SelectionUnit
Source§impl Debug for SelectionUnit
impl Debug for SelectionUnit
impl Eq for SelectionUnit
Source§impl PartialEq for SelectionUnit
impl PartialEq for SelectionUnit
Source§fn eq(&self, other: &SelectionUnit) -> bool
fn eq(&self, other: &SelectionUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelectionUnit
Auto Trait Implementations§
impl Freeze for SelectionUnit
impl RefUnwindSafe for SelectionUnit
impl Send for SelectionUnit
impl Sync for SelectionUnit
impl Unpin for SelectionUnit
impl UnsafeUnpin for SelectionUnit
impl UnwindSafe for SelectionUnit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.