pub trait GrepEngine: Send + Sync {
// Required methods
fn search(&self, input: &GrepEngineInput) -> Result<Vec<RgMatch>>;
fn count(&self, input: &GrepEngineInput) -> Result<Vec<RgCount>>;
}Expand description
Same pluggable-backend idea as the TS GrepEngine: default wraps
ripgrep’s library, tests or SSH-remote harnesses can substitute.