claims

Macro debug_assert_ok

Source
macro_rules! debug_assert_ok {
    ($($arg:tt)*) => { ... };
}
Expand description

Asserts that the expression matches an Ok(_) variant on debug builds.

This macro behaves nearly the same as assert_ok! on debug builds, although it does not return the value contained in the Ok variant. On release builds it is a no-op.