pub struct QuantifyReturnValue<'p, F, O>where
    F: MockFn,
    F::Output: Sized + Send + Sync,
{ /* private fields */ }
Expand description

Builder for defining how a call pattern with an explicit return value gets verified with regards to quantification/counting.

Implementations

Expect this call pattern to be called exactly once.

This is the only quantifier that works together with return values that don’t implement Clone.

Expect this call pattern to be called exactly the specified number of times.

Expect this call pattern to be called at least the specified number of times.

Trait Implementations

The drop implementation of this is intended to run when used in a stubbing clause, when the call pattern is left unquantified by the user.

In that case, it is only able to return once, because no Clone bound has been part of any construction step.

Executes the destructor for this type. Read more

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.