[−][src]Macro count_tts::count_tts
count_tts!() { /* proc-macro */ }
Expands to the number of token trees in the macro arguments
Example:
use count_tts::count_tts; assert_eq!(count_tts!(), 0); assert_eq!(count_tts!(a b c), 3); assert_eq!(count_tts!(a (b c)), 2); assert_eq!(count_tts!(a, b, c), 5);