| Crates.io | even_any_type |
| lib.rs | even_any_type |
| version | 0.0.5 |
| created_at | 2025-06-04 19:04:02.026523+00 |
| updated_at | 2025-06-04 19:04:02.026523+00 |
| description | A lightweight Rust crate providing simple, type-specific methods to check if a value is even. |
| homepage | https://github.com/had2020 |
| repository | https://github.com/had2020/even_any_type |
| max_upload_size | |
| id | 1700774 |
| size | 5,913 |
https://crates.io/crates/even_any_type
A lightweight Rust crate providing simple, type-specific methods to check if a value is even, for all primitive numerical types.
Add it to your Cargo.toml:
cargo add even_any_type
Basic usage
fn main() {
println!("{}", 4.is_even());
println!("{}", 3.1.is_even());
}
Leave a star to be a star! ⭐
PRs welcome, keep it simple.