pub const fn cond(cond: bool, if_true: i8, if_false: i8) -> i8
Returns if_true if cond is true, and otherwise returns if_false
if_true
if_false
use const_utils::i8::cond; assert!(cond(true, 33, 121) == 33); assert!(cond(false, 33, 121) == 121);