Rust crates for one-hot encoding structs and enums. Provides a trait and a proc macro for auto deriving.
- Generic trait for encoding arbitrary (including composite) types.
- Proc macro for auto deriving.
- Optional bitmatrix support, including vertical and horizontal encoding.
- No unsafe code.
onehot
is licenced under the MIT Licence.