#integer #even #odd #math #numeric

is-odd

Returns true if the given number is odd

1 stable release

Uses old Rust 2015

1.0.0 May 26, 2018

#2416 in Rust patterns

Download history 57/week @ 2023-02-05 85/week @ 2023-02-12 122/week @ 2023-02-19 61/week @ 2023-02-26 70/week @ 2023-03-05 64/week @ 2023-03-12 66/week @ 2023-03-19 60/week @ 2023-03-26 49/week @ 2023-04-02 47/week @ 2023-04-09 34/week @ 2023-04-16 30/week @ 2023-04-23 69/week @ 2023-04-30 55/week @ 2023-05-07 60/week @ 2023-05-14 33/week @ 2023-05-21

221 downloads per month
Used in 5 crates (3 directly)

MIT license

3KB

is-odd

Returns true if the given number is odd.

Install

Specify the dependencty in Cargo.toml:

[dependencies]
is-odd = "~1.0.0"

Fetch it with cargo:

$ cargo build

Usage

extern crate is_odd;
use is_odd::IsOdd;

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

About

License

Copyright © 2018, nukeop. Released under the MIT License.

No runtime deps