Macro typed_key::typed_key [] [src]

macro_rules! typed_key {
    ($name:expr) => { ... };
}

Constructs a new Key with a given name.

Examples

#[macro_use]
extern crate typed_key;

use std::net::IpAddr;
use typed_key::Key;

/// IP address of the server
const ADDR: Key<IpAddr> = typed_key!("addr");