Skip to main content

Test

Trait Test 

Source
pub trait Test<Arg, Res>:
    Sync
    + Send
    + 'static
where Res: TestResult,
{ // Required method fn call(&self, value: Arg, kwargs: Kwargs, state: &State<'_>) -> Res; }
Expand description

The test function type definition

Required Methods§

Source

fn call(&self, value: Arg, kwargs: Kwargs, state: &State<'_>) -> Res

The test function type definition

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<Func, Arg, Res> Test<Arg, Res> for Func
where Func: Fn(Arg, Kwargs, &State<'_>) -> Res + Sync + Send + 'static, Arg: for<'a> ArgFromValue<'a>, Res: TestResult,