DefaultReturn

Trait DefaultReturn 

Source
pub trait DefaultReturn {
    // Required method
    fn default_return() -> Self;
}
Expand description

Allows to construct the return value when test is skipped

When not explicitly given by the skip_result parameter, the test will return DefaultReturn::default_return().

Application might need to implement an own implementation for uncommon return type.

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl DefaultReturn for ()

Source§

impl DefaultReturn for ExitCode

Source§

impl<T: Default, E> DefaultReturn for Result<T, E>

Implementors§