Trait httptest::matchers::Matcher [−][src]
pub trait Matcher<IN>: Send where
IN: ?Sized, {
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
fn matches(&mut self, input: &IN, ctx: &mut ExecutionContext) -> bool
fn matches(&mut self, input: &IN, ctx: &mut ExecutionContext) -> bool
Map an input to output.
Implementations on Foreign Types
A &str is an implicit Eq mapper.
A String is an implicit Eq mapper.
A &u8 is an implicit Eq mapper.
A Vec