Macro std::runtime::is_const_evaluable
Returns true
when the argument is an expression that can be evaluated
at compile time.
Example
use std::runtime::is_const_evaluable;
use libc::abort;
assert!(is_const_evaluable!(1 + 1));
assert!(!is_const_evaluable!(abort()));
Run this example