consume_update

Macro consume_update 

Source
macro_rules! consume_update {
    ($group: expr, [$($elems:ident),*]) => { ... };
    ($group: expr, (($($elems:ident),*))) => { ... };
    ($group: expr, $($elems:ident),*) => { ... };
}
Expand description

Shorthand macro for consuming multiple updates.

With bracket syntax, this macro returns array of bool values, which indicates whether each elements has been updated. With simple variadic syntax, this macro returns boolean value which indicates whether any of given elements has been updated.

If elements are wrapped inside parenthesis, this macro returns temporary struct which has boolean fields names each elements.

In both cases, all supplied arguments will be evaluated.