Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 629 Bytes

readme.md

File metadata and controls

19 lines (13 loc) · 629 Bytes

onehot & onehot-derive

Rust crates for one-hot encoding structs and enums. Provides a trait and a proc macro for auto deriving.

Cargo Documentation

Features

  • Generic trait for encoding arbitrary (including composite) types.
  • Proc macro for auto deriving.
  • Optional bitmatrix support, including vertical and horizontal encoding.
  • No unsafe code.

Licence

onehot is licenced under the MIT Licence.