[][src]Macro claim::debug_assert_matches

macro_rules! debug_assert_matches {
    ($($arg:tt)*) => { ... };
}

Asserts that expression matches any of the given variants.

Like assert_matches!, this macro also has a second version, where a custom panic message can be provided.

Uses

See debug_assert_matches! documentation for possible use cases. The same applies to this macro.