pub fn contract_check_requires<C: Fn() -> bool>(cond: C)🔬This is a nightly-only experimental API. (
contracts_internals #128044)Expand description
Check if the pre-condition cond has been met.
By default, if contract_checks is enabled, this will panic with no unwind if the condition
returns false.