//! Attribute enums with helpers (Rails `enum status: { ... }`).
//!
//! A real Rust enum already gives you variant comparison (`status ==
//! Status::Active` is Rails' `status.active?`). [`AttributeEnum`] adds the rest:
//! a stable string `label` per variant, enumeration of `all` variants, and
//! `from_label`/`index`/`labels` for storage and UI.
/// Implemented by enum attributes to gain label mapping and enumeration.