#derive #bounded #hash #ord #eq #debug

macro derive_bounded

Builtin-macros workalike but with a way to specify bounds

5 releases (breaking)

Uses new Rust 2021

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

#868 in Procedural macros

27 downloads per month

MIT license

25KB
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

~0.5–1MB
~21K SLoC