pub enum Target {
Character,
Word,
Line,
}Expand description
The granularity of a text selection.
The target determines how a selection is expanded around its starting position:
Target::Characterselects the individual characters between the given positions;Target::Wordexpands the selection to the nearest whole words;Target::Lineexpands the selection to the nearest whole lines.
Variants§
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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