pub trait Matcher<IN>: Sendwhere
IN: ?Sized,{
// Required methods
fn matches(&mut self, input: &IN, ctx: &mut ExecutionContext) -> bool;
fn fmt(&self, f: &mut Formatter<'_>) -> Result;
}
Expand description
The core trait. Defines how an input value should be turned into an output value. This allows for a flexible pattern of composition where two or more matchers are chained together to form a readable and flexible manipulation.
Required Methods§
sourcefn matches(&mut self, input: &IN, ctx: &mut ExecutionContext) -> bool
fn matches(&mut self, input: &IN, ctx: &mut ExecutionContext) -> bool
Map an input to output.