is-odd

Crates.iois-odd
lib.rsis-odd
version
sourcesrc
created_at2018-05-26 17:53:04.278032
updated_at2024-12-23 21:56:48.79323
descriptionReturns true if the given number is odd.
homepage
repositoryhttps://github.com/nukeop/is-odd
max_upload_size
id67165
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(nukeop)

documentation

README

is-odd

Returns true if the given number is odd.

Install

Specify the dependencty in Cargo.toml:

[dependencies]
is-odd = "1.1.1"

Or:

$ cargo add is_odd

Fetch it with cargo:

$ cargo build

Usage

use is_odd::IsOdd;

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

About

Currently, the library support both integer and floating point numbers.

License

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

Commit count: 18

cargo fmt