Enum text_document::text_cursor::MoveMode
source · [−]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 RefUnwindSafe for MoveMode
impl Send for MoveMode
impl Sync for MoveMode
impl Unpin for MoveMode
impl UnwindSafe for MoveMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more