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]

[src]

Creates a MatchResultBuilder for an anonymous Matcher.

[src]

Creates MatchResultBuilder for a Matcher with the given name

[src]

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

[src]

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

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

[src]

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.