Registry / utility / auto-enums

auto-enums

JSON →
library0.8.8rscratesunverified

A library to allow multiple return types by automatically generating an enum.

# Cargo.toml [dependencies] auto_enums = "0.8.8"
INSTALL
IMPORT
SIG · AUTO-ENUMS
A
auto-enums
utilityrustv0.8.8
harness data pending
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.

auto_enum
use auto_enums::auto_enum;

Automatically wraps multiple return types in an enum.

use auto_enums::auto_enum; #[auto_enum] fn foo(x: i32) -> impl Iterator<Item = i32> { if x > 0 { vec![1, 2, 3].into_iter() } else { (0..3).into_iter() } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.8.8latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
2
Resources
auto-enums — cargo add auto-enums · libregistry