1 unstable release

0.1.0 Mar 23, 2021

#1405 in Development tools

42 downloads per month
Used in is_false

MIT license

3KB

This crate entroduces is_true! macro and is_true() function which checks if argument is true

[dependencies] 
is_true = "0.1"

Usage

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);
}

lib.rs:

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

No runtime deps