Crates.io | is-even |
lib.rs | is-even |
version | 1.0.0 |
source | src |
created_at | 2019-05-12 14:32:03.651804 |
updated_at | 2019-05-12 14:32:03.651804 |
description | Returns true if the given number is odd. |
homepage | |
repository | https://github.com/baWedekind/is-even |
max_upload_size | |
id | 133739 |
size | 5,798 |
Returns true if the given number is even.
Specify the dependencty in Cargo.toml:
[dependencies]
is-even = "~1.0.0"
Fetch it with cargo:
$ cargo build
extern crate is_even;
use is_even::IsEven;
let _i : i32 = 1;
println!("{}", _i.is_even()); // prints false
Copyright © 2019, baWedekind. Released under the MIT License.