macro_rules! debug_assert_some { ($($arg:tt)*) => { ... }; }
Expand description
Asserts that expression returns Some(T)
variant in runtime.
Like assert_some!
, this macro also has a second version,
where a custom panic message can be provided.
ยงUses
See debug_assert!
documentation for possible use cases.
The same applies to this macro.