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

Map an input to output.

formatted name of the mapper. This is used for debugging purposes and should typically look like a fmt::Debug representation.

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 is an implicit Eq mapper.

Implementors