Macro assert2::debug_assert

source ·
macro_rules! debug_assert {
    ($($tokens:tt)*) => { ... };
Expand description

Assert that an expression evaluates to true or matches a pattern.

This macro supports the same checks as assert, but they are only executed if debug assertions are enabled.

As with std::debug_assert, the expression is still type checked if debug assertions are disabled.