Registry / utility / enumn

enumn

JSON →
library0.1.14rscratesunverified

Converts numbers to enum variants using a derive macro.

utility
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use enumn::N;

Converts an integer to an enum variant using the N derive macro.

use enumn::N; #[derive(N)] enum Color { Red, Green, Blue, } fn main() { let color = Color::n(1).unwrap(); println!("{:?}", color); }
Debug
Known footguns

No known footguns recorded.

Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
12 hits · last 30 days
gptbot
3
claudebot
3
ahrefsbot
1
Resources