#specify #bounds #debugging #default #clone #workalike #builtin-macros

macro derive_bounded

Builtin-macros workalike but with a way to specify bounds

5 releases (breaking)

0.5.0 Aug 4, 2022
0.4.0 Jul 26, 2022
0.3.0 Jul 15, 2022
0.2.0 Jul 15, 2022
0.1.0 Jul 15, 2022

#1209 in Procedural macros

MIT license

26KB
503 lines

Builtin-macros workalike but with a way to specify bounds

LICENSE Crates.io dependency status Documentation Actions Status

Supported right now

Struct-style Struct

  • Default
  • Debug
  • Clone
  • PartialEq
  • Eq
  • PartialOrd
  • Ord
  • Hash

Newtype/tuple Struct

  • Default
  • Debug
  • Clone
  • PartialEq
  • Eq
  • PartialOrd
  • Ord
  • Hash

Enums

  • Default
  • Debug
  • Clone
  • PartialEq
  • Eq
  • PartialOrd
  • Ord
  • Hash

Acknowledgements

This software has been developed in the scope of the H2020 project SIFIS-Home with GA n. 952652.

Dependencies

~1.5MB
~40K SLoC