Skip to main content

MatchSink

Trait MatchSink 

Source
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) { ... }
}

Required Methods§

Source

fn matched(&mut self, mat: &Match) -> bool

Provided Methods§

Source

fn context(&mut self, _line: &ContextLine) -> bool

Source

fn finish(&mut self)

Implementors§