evutils 0.1.1

Handy helper utilities for working with enum variants
Documentation
  • Coverage
  • 0%
    0 out of 11 items documented0 out of 5 items with examples
  • Size
  • Source code size: 7.85 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.45 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 25s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • richardstephens

Enum variant utils

Handy utilities for working with Rust enums.

  • VariantDef - automatically define a const struct to make metadata about your enum variants available in a consistent way
  • IsVariant - quickly check if something is an instance of a specific variant
  • VariantName - quickly get (just) the variant name
  • VariantPropsToJsonArray - get the variants properties as a Vec<serde_json::Value>

More tools and detailed docs to follow soon.