Macro ident_total_unique
ident_total_unique!() { /* proc-macro */ }
Expand description
devela_macros
Returns the numbers of both total and unique identifiers in its input.
This macro does not differentiate between different kinds of identifiers nor check their validity in context. It simply counts all identifiers, discarding the rest, and returns an array with both the total and unique count.
See also ident_total!
, ident_unique!
.
§Examples
assert_eq![ident_total_unique!(a, a 東 r#true; a3 != 3a), [5, 4]];