#odd #integer #numeric #even

is-even

Returns true if the given number is odd

1 stable release

1.0.0 May 12, 2019

#1393 in Math

Download history 124/week @ 2024-03-13 176/week @ 2024-03-20 220/week @ 2024-03-27 219/week @ 2024-04-03 318/week @ 2024-04-10 211/week @ 2024-04-17 154/week @ 2024-04-24 285/week @ 2024-05-01 350/week @ 2024-05-08 251/week @ 2024-05-15 254/week @ 2024-05-22 239/week @ 2024-05-29 187/week @ 2024-06-05 120/week @ 2024-06-12 315/week @ 2024-06-19 279/week @ 2024-06-26

995 downloads per month
Used in 3 crates (via is-even-or-odd)

MIT license

3KB

is-even

Returns true if the given number is even.

Install

Specify the dependencty in Cargo.toml:

[dependencies]
is-even = "~1.0.0"

Fetch it with cargo:

$ cargo build

Usage

extern crate is_even;
use is_even::IsEven;

let _i : i32 = 1;
println!("{}", _i.is_even()); // prints false

About

License

Copyright © 2019, baWedekind. Released under the MIT License.

Dependencies

~3KB