enum-map 0.2.24

A map with C-like enum keys represented internally as an array
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![no_std]

#[macro_use]
extern crate enum_map;

use enum_map::EnumMap;

#[derive(EnumMap)]
enum Void {}

#[test]
fn empty_map() {
    let void: EnumMap<Void, Void> = enum_map!{};
    assert!(void.is_empty());
}