Expand description
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ยง
- Asserts that an expression matches a given pattern.
- Asserts that an expression matches a given pattern.