macro_rules! set_attrs {
($obj:expr, $vm:expr, unwrap, $($key:expr => $val:expr),+ $(,)?) => { ... };
($obj:expr, $vm:expr, $($key:expr => $val:expr),+ $(,)?) => { ... };
}Expand description
Macro to reduce code repetition when setting multiple attributes on an object.