Struct rassert::ExpectationChain[][src]

pub struct ExpectationChain<'a, T> { /* fields omitted */ }

Implementations

Trait Implementations

Asserts that the tested expression evaluates to true.

Asserts that the tested expression evaluates to false.

Asserts that the actual value satisfies some expectation, given in the form of a custom function. This expectation function shall return false if the expectation does not hold and true otherwise. In the former case, rassert will display the supplied message string. Read more

Asserts that the actual value is equal to the [expected] value. The same as the to_be function. Read more

Asserts that the actual value is equal to the [expected] value. The same as the to_equal function. Read more

Asserts that the actual value is not equal to the [expected] value. The same as the to_not_be function. Read more

Asserts that the actual value is not equal to the [expected] value. The same as the to_not_equal function. Read more

Asserts that the tested Option holds Some value.

Asserts that the tested Option is None.

Asserts that the actual Option holds Some(expected).

Asserts that the tested Result is Ok(..).

Asserts that the tested Result is Err(..).

Asserts that the length of the tested vector is equal to [expected].

Asserts that the tested vector is empty.

Asserts that the tested vector is not empty (it contains at least one item).

Asserts that the tested vec contains [expected].

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.