Crates.io | isnt-even-nor-odd |
lib.rs | isnt-even-nor-odd |
version | 1.0.1 |
source | src |
created_at | 2023-03-17 18:01:02.295683 |
updated_at | 2023-03-17 18:25:46.404018 |
description | Returns true if the given number isn't even or odd. |
homepage | |
repository | https://github.com/dsgallups/isnt-even-nor-odd |
max_upload_size | |
id | 812903 |
size | 3,663 |
Returns true if the given number isn't even nor odd.
Specify the dependency in Cargo.toml:
[dependencies]
isnt-even-nor-odd = "1"
Fetch it with cargo:
cargo build
use isnt_even_nor_odd::IsntEvenNorOdd;
let _i : i32 = 1;
println!("{}", _i.isnt_even_nor_odd()); // prints false
Credit to purewhite because i just copy pasted all of this and reversed his dependency. the logic was too hard to understand for me so thakns for the boilerplate
Released under the MIT License.