even_any_type

Crates.ioeven_any_type
lib.rseven_any_type
version0.0.5
created_at2025-06-04 19:04:02.026523+00
updated_at2025-06-04 19:04:02.026523+00
descriptionA lightweight Rust crate providing simple, type-specific methods to check if a value is even.
homepagehttps://github.com/had2020
repositoryhttps://github.com/had2020/even_any_type
max_upload_size
id1700774
size5,913
Hadrian Lazic (had2020)

documentation

README

even_any_type

MSRV crates.io Downloads

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.

🚀 Usage

Add it to your Cargo.toml:

cargo add even_any_type

Basic usage

fn main() {
  println!("{}", 4.is_even());
  println!("{}", 3.1.is_even());
}

Features

  • Simple and ergonomic
  • No dependencies (just std :C)
  • Minimal footprint

See Github for Up To Date Docs

Leave a star to be a star! ⭐

PRs welcome, keep it simple.

Commit count: 9

cargo fmt