Struct unimock::macro_api::Matching

source ·
pub struct Matching<F: MockFn> { /* private fields */ }
Expand description

A builder for argument matchers.

Implementations

Set the matching function.

The function should accept a reference to inputs as argument, and return a boolean answer representing match or no match.

Register debug info on the matching builder.

This way, a mismatch may be easier to debug, as the debug info can be printed as part of panic messages.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.