Enum unimock::macro_api::Evaluation
source · [−]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
Auto Trait Implementations
impl<'i, O, F> RefUnwindSafe for Evaluation<'i, O, F> where
O: RefUnwindSafe,
<F as MockInputs<'i>>::Inputs: RefUnwindSafe,
impl<'i, O, F> Send for Evaluation<'i, O, F> where
O: Send,
<F as MockInputs<'i>>::Inputs: Send,
impl<'i, O, F> Sync for Evaluation<'i, O, F> where
O: Sync,
<F as MockInputs<'i>>::Inputs: Sync,
impl<'i, O, F> Unpin for Evaluation<'i, O, F> where
O: Unpin,
<F as MockInputs<'i>>::Inputs: Unpin,
impl<'i, O, F> UnwindSafe for Evaluation<'i, O, F> where
O: UnwindSafe,
<F as MockInputs<'i>>::Inputs: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more