const_usize_assert

Function const_usize_assert 

Source
pub const fn const_usize_assert<T: UsizeAssert>()
Expand description

Const form of UsizeAssert::assert().

Prefer using UsizeAssert::assert() when possible because it can give better error messages.

ยงPanics

This function will panic if the DUNGEON_CELL_RUNTIME_CHECKS environment variable is set and the assertion fails. Otherwise, this function is a no-op for the program.

See module docs for details.