[][src]Macro assert2::debug_assert

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

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.