#odd #numeric #integer #even

is-even

Returns true if the given number is odd

1 stable release

1.0.0 May 12, 2019

#1428 in Math

Download history 85/week @ 2024-03-08 164/week @ 2024-03-15 187/week @ 2024-03-22 224/week @ 2024-03-29 232/week @ 2024-04-05 381/week @ 2024-04-12 111/week @ 2024-04-19 147/week @ 2024-04-26 382/week @ 2024-05-03 284/week @ 2024-05-10 228/week @ 2024-05-17 267/week @ 2024-05-24 228/week @ 2024-05-31 166/week @ 2024-06-07 207/week @ 2024-06-14 331/week @ 2024-06-21

979 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