pub enum ExpandSelectionUnit {
Character,
Word,
Line,
}Expand description
Selection expansion unit for CursorCommand::ExpandSelectionBy.
Variants§
Character
Expand by Unicode scalar values (Rust char indices).
Word
Expand by “word” units (configured word boundary rules).
Line
Expand by logical lines.
Trait Implementations§
Source§impl Clone for ExpandSelectionUnit
impl Clone for ExpandSelectionUnit
Source§fn clone(&self) -> ExpandSelectionUnit
fn clone(&self) -> ExpandSelectionUnit
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 ExpandSelectionUnit
Source§impl Debug for ExpandSelectionUnit
impl Debug for ExpandSelectionUnit
impl Eq for ExpandSelectionUnit
Source§impl PartialEq for ExpandSelectionUnit
impl PartialEq for ExpandSelectionUnit
Source§fn eq(&self, other: &ExpandSelectionUnit) -> bool
fn eq(&self, other: &ExpandSelectionUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExpandSelectionUnit
Auto Trait Implementations§
impl Freeze for ExpandSelectionUnit
impl RefUnwindSafe for ExpandSelectionUnit
impl Send for ExpandSelectionUnit
impl Sync for ExpandSelectionUnit
impl Unpin for ExpandSelectionUnit
impl UnsafeUnpin for ExpandSelectionUnit
impl UnwindSafe for ExpandSelectionUnit
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