//! Defines the [`IndexedEnum`] trait.
/// Trait for enums that have fixed indexed variants.
pubtraitIndexedEnum: private::Sealed + Sized + 'static {/// A slice containing all the variants in index order.
////// The exact value is subject to change in any future release.
constVARIANTS:&[Self];/// Returns this variant's unique zero-based index.
////// The index satisfies `0 <= self.as_index() < Self::VARIANTS.len()`.
fnas_index(&self)->usize;}pub(crate)modprivate{pubtraitSealed{}}