1 unstable release

0.1.0 Mar 24, 2021

#1536 in Development tools

MIT license

4KB

This crate entroduces is_false! macro and is_false() function which checks if argument is false

[dependencies] 
is_false = "0.1"

Usage

use is_false::is_false;

fn main() {
    assert_eq!(is_false!(4 % 2 == 0, 5 % 2 == 0), false);        
    assert_eq!(is_false!(5 % 2 == 0, 1 == 2), true);
}
use is_false::is_false;

fn main() {
    assert_eq!(is_false(5 % 2 == 0), true);
}

lib.rs:

This crate entroduces is_false! macro and [is_false()] function which checks if argument is true

Dependencies

~3KB