Macro dtab::dtab
[−]
[src]
macro_rules! dtab { ($($src: expr => $dst: expr ;)+) => { ... }; }
Convenience macro for making Dtab
s.
Examples
use dtab::NameTree; let dtab = dtab![ "/smitten" => NameTree::from("/USA/CA/SF/Harrison/2790"); "/iceCreamStore" => NameTree::from("/humphrys") | "/smitten"; ]; assert_eq!( &format!("{}", dtab) , "/smitten => /USA/CA/SF/Harrison/2790;\n\ /iceCreamStore => /humphrys | /smitten;\n" );