Expand description
§Macrokit ⚙️
A collection of procedural derive macros for Rust.
§Features
#[derive(FromReprAsOption)]: For safe, fallible conversions from an integer representation to an enum, returning anOption<Self>.#[derive(FromReprWithUnknown)]: For infallible conversions that require anUnknownvariant as a fallback.
Derive Macros§
- From
Repr AsOption - Derives a
from_reprfunction for an enum. - From
Repr With Unknown - Derives an
impl From<T>for an enum that has anUnknownvariant.