pub trait Search: Send {
// Required methods
fn find_next(&self, from: Pos, pat: &Regex) -> Option<Range<Pos>>;
fn find_prev(&self, from: Pos, pat: &Regex) -> Option<Range<Pos>>;
}Expand description
Search sub-trait of View. The pattern is owned by the engine;
buffers do not cache compiled regexes.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".