Crates.io | is-even-or-odd |
lib.rs | is-even-or-odd |
version | 1.0.0 |
source | src |
created_at | 2023-03-14 15:32:37.730875 |
updated_at | 2023-03-14 15:32:37.730875 |
description | Returns true if the given number is even or odd. |
homepage | |
repository | https://github.com/PureWhiteWu/is-even-or-odd |
max_upload_size | |
id | 809935 |
size | 3,415 |
Returns true if the given number is even or odd.
Specify the dependencty in Cargo.toml:
[dependencies]
is-even-or-odd = "1"
Fetch it with cargo:
$ cargo build
use is_even_or_odd::IsEvenOrOdd;
let _i : i32 = 1;
println!("{}", _i.is_even_or_odd()); // prints true
Copyright © 2018, purewhite. Released under the MIT License.