Skip to content
/ onehot Public

One-hot encoding trait and proc macro for auto deriving

License

Notifications You must be signed in to change notification settings

gahag/onehot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

One-hot encoding trait and proc macro for auto deriving

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages