这个板条箱介绍了is_true! 宏和is_true()函数,用于检查参数是否为true [ dependencies ] is_true = " 0.1 " 用法 use is_true :: is_true; fn main () { let result = is_true! ( 4 % 2 == 0 , 5 % 2 == 0 ); assert_eq! (result, false ); } use is_true :: is_true; fn main () { assert_eq! ( is_true! ( true ), true ); }