pub enum MoveMode {
MoveAnchor,
KeepAnchor,
}
Expand description
If the anchor() is kept where it is and the position() is moved, the text_line in between will be selected.
Variants§
MoveAnchor
Moves the anchor to the same position as the cursor itself.
KeepAnchor
Keeps the anchor where it is.
Trait Implementations§
impl Copy for MoveMode
impl StructuralPartialEq for MoveMode
Auto Trait Implementations§
impl Freeze for MoveMode
impl RefUnwindSafe for MoveMode
impl Send for MoveMode
impl Sync for MoveMode
impl Unpin for MoveMode
impl UnwindSafe for MoveMode
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