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