devela::code::util

Macro ident_total

ident_total!() { /* proc-macro */ }
Expand description

devela_macros Returns the total number of identifiers in its input.

This macro does not differentiate between different kinds of identifiers nor check their validity in context. It simply counts all identifier, discarding the rest.

See also ident_unique!, ident_total_unique!.

§Examples

assert_eq![ident_total!(a, a 東 r#true; a3 != 3a), 5];