Expand description
#[derive(PyEnum)] procedural macro.
Parsing, validation, and codegen live in the submodules and are wired
together by derive_pyenum. The generated code only names items
re-exported from pyenum::__private, so the output is stable across
internal refactors of the runtime crate.
See the pyenum crate docs for usage,
worked examples, and scope.
Derive Macrosยง
- PyEnum
- Derive a
pyenum::PyEnumimplementation for a unit-variant Rust enum.