is-even-or-odd

Crates.iois-even-or-odd
lib.rsis-even-or-odd
version1.0.0
sourcesrc
created_at2023-03-14 15:32:37.730875
updated_at2023-03-14 15:32:37.730875
descriptionReturns true if the given number is even or odd.
homepage
repositoryhttps://github.com/PureWhiteWu/is-even-or-odd
max_upload_size
id809935
size3,415
Pure White (PureWhiteWu)

documentation

README

is-even-or-odd

Returns true if the given number is even or odd.

Install

Specify the dependencty in Cargo.toml:

[dependencies]
is-even-or-odd = "1"

Fetch it with cargo:

$ cargo build

Usage

use is_even_or_odd::IsEvenOrOdd;

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

About

License

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

Commit count: 1

cargo fmt