Crate assert_matches[][src]

Provides a macro, assert_matches!, which tests whether a value matches a given pattern, causing a panic if the match fails.

See the macro assert_matches! documentation for more information.

Also provides a debug-only counterpart, debug_assert_matches!.

See the macro debug_assert_matches! documentation for more information about this macro.

Macros

assert_matches

Asserts that an expression matches a given pattern.

debug_assert_matches

Asserts that an expression matches a given pattern.