Crates.io | is_true |
lib.rs | is_true |
version | 0.1.0 |
source | src |
created_at | 2021-03-23 15:38:09.978786 |
updated_at | 2021-03-23 15:38:09.978786 |
description | Is it true? |
homepage | |
repository | https://github.com/PatriotRossii/is_true/ |
max_upload_size | |
id | 372612 |
size | 4,073 |
This crate entroduces is_true!
macro and is_true()
function which checks if argument is 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);
}