1 2 3 4 5 6 7 8 9 10 11
#[macro_export] macro_rules! PROP { ($emitter:expr, $node:expr, $prop:ident) => { $emitter.write(stringify!($prop), &$node.$prop); }; } pub use PROP; #[allow(unused_imports)] pub use PROP as prop;