[][src]Trait fluid::core::AssertionImpl

pub trait AssertionImpl: Sized {
    type Left: Debug;
    fn failure_message(&mut self) -> Option<String>;
fn consume_as_should(self) -> ShouldImpl<Self::Left>;
fn should_mut(&mut self) -> &mut ShouldImpl<Self::Left>; }

The trait used by the implementation detail, must be used by who wants to add a custom assertion.

Associated Types

type Left: Debug

The left type.

Loading content...

Required methods

fn failure_message(&mut self) -> Option<String>

Returns a message if the assertion failed.

fn consume_as_should(self) -> ShouldImpl<Self::Left>

Verify the assertion, and returns the Should struct.

fn should_mut(&mut self) -> &mut ShouldImpl<Self::Left>

Add an explanation from the because method from the Assertion trait.

Loading content...

Implementors

Loading content...