Struct galvanic_assert::MatchResultBuilder [] [src]

pub struct MatchResultBuilder { /* fields omitted */ }

A builder for creating MatchResults.

Create a new builder with new() or for_() and finalize it either with matched(), failed_because(), or failed_comparison().

Methods

impl MatchResultBuilder
[src]

Creates a MatchResultBuilder for an anonymous Matcher.

Creates MatchResultBuilder for a Matcher with the given name

Finalzes the builder indicating that the Matcher matched the inspected value.

Finalzes the builder indicating that the Matcher failed to the inspected value.

The reason should give a short indication why the matcher failed.

Finalzes the builder indicating that the Matcher failed to the inspected value.

The actual and expected value are used the generate a useful error message.