pub trait MockInputs<'i> {
    type Inputs;
}
Expand description

Trait specifying inputs to a mocked function. Base trait of MockFn.

The lifetime parameter allows inputs that are non-static references.

Required Associated Types

The inputs to a mockable function.

  • For a function with no parameters, the type should be the empty tuple ().
  • For a function with 1 parameter T, the type should be T.
  • For a function with N parameters, the type should be the tuple (T1, T2, ..).

Implementors