pub enum InsertDrift {
Inside,
Outside,
Default,
}
Expand description
Indicates if an edit should try to drift inside or outside nearby selections. If the selection
is zero width, that is, it is a caret, this value will be ignored, the equivalent of the
Default
value.
Variants§
Inside
Indicates this edit should happen within any (non-caret) selections if possible.
Outside
Indicates this edit should happen outside any selections if possible.
Default
Indicates to do whatever the after
bool says to do
Trait Implementations§
Source§impl Clone for InsertDrift
impl Clone for InsertDrift
Source§fn clone(&self) -> InsertDrift
fn clone(&self) -> InsertDrift
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for InsertDrift
Auto Trait Implementations§
impl Freeze for InsertDrift
impl RefUnwindSafe for InsertDrift
impl Send for InsertDrift
impl Sync for InsertDrift
impl Unpin for InsertDrift
impl UnwindSafe for InsertDrift
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