Trait enum_traits::Index [] [src]

pub trait Index {
    type Type;
}

Represents the type specified in the repr attribute for the enum item. If a repr attribute does not exist, a calculated minimum integer type based on the number of variant fields is used instead.

Derive this trait for an enum using #[derive(EnumIndex)]

Associated Types

type Type

Type used as an index for the enum

Implementors