pub enum Evaluation<'i, O, F: MockFn> {
    Evaluated(O),
    Skipped(<F as MockInputs<'i>>::Inputs),
}
Expand description

The evaluation of a MockFn.

Used to tell trait implementations whether to do perform their own evaluation of a call.

The output is generic, because both owned and referenced output are supported.

Variants

Evaluated(O)

Function evaluated to its output.

Skipped(<F as MockInputs<'i>>::Inputs)

Function not yet evaluated.

Implementations

Unwrap the Evaluated variant, or panic. The unimock instance must be passed in order to register that an eventual panic happened.

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.