Enum reedline::UndoBehavior
source · [−]pub enum UndoBehavior {
Ignore,
Full,
Coalesce,
}
Expand description
Specifies how the (previously executed) operation should be treated in the Undo stack.
Variants
Ignore
Operation is not affecting the LineBuffers content and should be ignored
e.g. the undo commands themselves are not stored in the undo stack
Full
The operation is one logical unit of work that should be stored in the undo stack
Coalesce
The operation is a single operation that should be best coalesced in logical units such as words
e.g. insertion of characters by typing
Auto Trait Implementations
impl RefUnwindSafe for UndoBehavior
impl Send for UndoBehavior
impl Sync for UndoBehavior
impl Unpin for UndoBehavior
impl UnwindSafe for UndoBehavior
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