pub enum HighlightEffect {
Keep,
Clear,
}Expand description
What an action does to search HIGHLIGHTING.
vim leaves hlsearch lit until :nohlsearch, which is why nearly every
published vimrc remaps something to :noh — the highlight has done its job
the moment you start editing, and leaving it on turns the buffer into
confetti. escriba clears it on the first action that is plainly not part of
searching.
Clearing SUPPRESSES without forgetting: the pattern survives, so n still
works and re-lights.
Variants§
Trait Implementations§
Source§impl Clone for HighlightEffect
impl Clone for HighlightEffect
Source§fn clone(&self) -> HighlightEffect
fn clone(&self) -> HighlightEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HighlightEffect
Source§impl Debug for HighlightEffect
impl Debug for HighlightEffect
impl Eq for HighlightEffect
Source§impl PartialEq for HighlightEffect
impl PartialEq for HighlightEffect
impl StructuralPartialEq for HighlightEffect
Auto Trait Implementations§
impl Freeze for HighlightEffect
impl RefUnwindSafe for HighlightEffect
impl Send for HighlightEffect
impl Sync for HighlightEffect
impl Unpin for HighlightEffect
impl UnsafeUnpin for HighlightEffect
impl UnwindSafe for HighlightEffect
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