pub struct Each<F: MockFn> { /* private fields */ }
Expand description

Builder for defining a series of cascading call patterns on a specific MockFn.

Implementations

Define the next call pattern, given some input matcher.

The new call pattern will be matched after any previously defined call patterns on the same Each instance.

The method returns a Match, which is used to define how unimock responds to the matched call.

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.