is_true

Crates.iois_true
lib.rsis_true
version0.1.0
sourcesrc
created_at2021-03-23 15:38:09.978786
updated_at2021-03-23 15:38:09.978786
descriptionIs it true?
homepage
repositoryhttps://github.com/PatriotRossii/is_true/
max_upload_size
id372612
size4,073
Danil Sidoruk (eoan-ermine)

documentation

https://docs.rs/is_true/

README

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);
}
Commit count: 5

cargo fmt