pub trait MatchSink { // Required method fn matched(&mut self, mat: &Match) -> bool; // Provided methods fn context(&mut self, _line: &ContextLine) -> bool { ... } fn finish(&mut self) { ... } }