macro_rules! attr {
($ik:ident $k:expr,$iv:ident $v:expr) => { ... };
($ik:ident $k:expr,$v:expr) => { ... };
($k:expr, $iv:ident $v:expr) => { ... };
($k:expr,$v:expr) => { ... };
}
Expand description
represents an attribute in dot lang.
ยงExample:
fn attr_test() {
use dot_generator::*;
use dot_structures::*;
assert_eq!(attr!("a","1"), Attribute(id!("a"), id!("1")));
assert_eq!(attr!(html "a","1"), Attribute(id!(html "a"), id!("1")))
}