Crates.io | is_false |
lib.rs | is_false |
version | 0.1.0 |
source | src |
created_at | 2021-03-24 09:18:35.505845 |
updated_at | 2021-03-24 09:18:35.505845 |
description | Is it false? |
homepage | |
repository | https://github.com/PatriotRossii/is_false/ |
max_upload_size | |
id | 372865 |
size | 4,158 |
This crate entroduces is_false!
macro and is_false()
function which checks if argument is false
[dependencies]
is_false = "0.1"
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);
}