is-odd
Returns true if the given number is odd.
Install
Specify the dependencty in Cargo.toml:
is-odd = "~1.1.0"
Fetch it with cargo:
Usage
extern crate is_odd;
use IsOdd;
let _i : i32 = 1;
println!; // prints true
Known tradeoffs
Currently, the library doesn't support floating point numbers.
About
License
Copyright © 2018, nukeop. Released under the MIT License.