Crate enumcapsulate

source ·
Expand description

Traits and corresponding derive macros for enum-based encapsulation.

Re-exports§

Modules§

Traits§

  • Used to do a cheap mutable-to-mutable reference conversion between an outer enum’s and its inner variant’s type.
  • Used to do a cheap reference-to-reference reference conversion between an outer enum’s and its inner variant’s type.
  • Used to do variant-to-enum conversions between an outer enum’s and its inner variant’s type.
  • Used to do enum-to-variant conversions between an outer enum’s and its inner variant’s type.
  • Used to check type of an enum’s inner variant’s type.
  • Used to obtain an enum variant’s discriminant.
  • Convenience umbrella trait used to do a cheap