Skip to main content

ripgrep_api/
sink.rs

1use crate::types::{ContextLine, Match};
2
3pub trait MatchSink {
4    fn matched(&mut self, mat: &Match) -> bool;
5
6    fn context(&mut self, _line: &ContextLine) -> bool {
7        true
8    }
9
10    fn finish(&mut self) {}
11}