pub trait Theory {
    // Required methods
    fn chaos(&mut self, callback: &dyn Fn() -> bool) -> &mut Self;
    fn theory<T: PartialEq>(
        &mut self,
        expected: T,
        callback: &dyn Fn() -> T
    ) -> &mut Self;
}
Expand description

§Add theory useful method

Required Methods§

source

fn chaos(&mut self, callback: &dyn Fn() -> bool) -> &mut Self

§A theory must be equal to false
  • callback The callback to execute
source

fn theory<T: PartialEq>( &mut self, expected: T, callback: &dyn Fn() -> T ) -> &mut Self

§Test a theory
  • expected The expect callback result
  • callback The callback to execute

Object Safety§

This trait is not object safe.

Implementors§