pub struct Searcher { /* private fields */ }Expand description
A struct for incremental searching in IncSearch
Implementations§
Source§impl Searcher
impl Searcher
Sourcepub fn search_fwd<'b>(
&'b mut self,
text: &'b mut Text,
range: impl TextRange,
) -> impl Iterator<Item = [Point; 2]> + 'b
pub fn search_fwd<'b>( &'b mut self, text: &'b mut Text, range: impl TextRange, ) -> impl Iterator<Item = [Point; 2]> + 'b
Searches forward for the required regex in a range
Sourcepub fn search_rev<'b>(
&'b mut self,
text: &'b mut Text,
range: impl TextRange,
) -> impl Iterator<Item = [Point; 2]> + 'b
pub fn search_rev<'b>( &'b mut self, text: &'b mut Text, range: impl TextRange, ) -> impl Iterator<Item = [Point; 2]> + 'b
Searches in reverse for the required regex in a rangerange
Auto Trait Implementations§
impl Freeze for Searcher
impl RefUnwindSafe for Searcher
impl !Send for Searcher
impl Sync for Searcher
impl Unpin for Searcher
impl UnwindSafe for Searcher
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