typed_key 0.1.1

Strongly-typed string keys for configuration.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(const_fn)]

extern crate typed_key;

use typed_key::Key;

#[test]
fn key_is_copy() {
    const K: Key<u32> = Key::new("foo.bar");
    let x = K;
    let y = x;
    assert_eq!(x.name(), y.name());
}