debug_assert_not_empty

Macro debug_assert_not_empty 

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

Asserts that expression is not empty using is_empty.

Like assert_not_empty!, 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.