pub enum SearchType {
Char(bool),
Regex,
Word(WordStyle, bool),
}Expand description
Specify a range within the text around the current cursor position.
Variants§
Char(bool)
Search for the character indicated by EditContext::get_search_char.
bool controls whether the search should continue across line boundaries.
Regex
Search for a regular expression.
Word(WordStyle, bool)
Search for the word currently under the cursor, and update the last CommandType::Search value in the application’s register store.
bool controls whether matches should be checked for using word boundaries.
Implementations§
Source§impl SearchType
impl SearchType
Sourcepub fn is_inclusive_motion(&self) -> bool
pub fn is_inclusive_motion(&self) -> bool
Returns true if this is an inclusive motion.
Trait Implementations§
Source§impl Clone for SearchType
impl Clone for SearchType
Source§fn clone(&self) -> SearchType
fn clone(&self) -> SearchType
Returns a duplicate 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 moreSource§impl Debug for SearchType
impl Debug for SearchType
Source§impl PartialEq for SearchType
impl PartialEq for SearchType
impl Eq for SearchType
impl StructuralPartialEq for SearchType
Auto Trait Implementations§
impl Freeze for SearchType
impl RefUnwindSafe for SearchType
impl Send for SearchType
impl Sync for SearchType
impl Unpin for SearchType
impl UnwindSafe for SearchType
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