macro_rules! name { ($s:expr) => { ... }; }
Construct a Name from an NDN URI string literal.
Name
let prefix = name!("/iperf"); assert_eq!(prefix.to_string(), "/iperf");
Panics at runtime if the string is not a valid NDN name.