Derive Macro enum_map::Enum[][src]

#[derive(Enum)]
Expand description

Procedural derive generating enum_map::Enum implementation.

Examples

use enum_map::Enum;

#[derive(Enum)]
enum A {
    B,
    C,
    D,
}

assert_eq!(Enum::<()>::into_usize(A::C), 1);