How repetition works in quote!
masterRepetition is performed using #(...)* or #(...),* syntax, similar to macro_rules!. This iterates through elements of an interpolated variable (such as a Vec, slice, BTreeSet, or any Iterator) and inserts the repetition body for each element.
#(#var)*— No separators.#(#var),*— Uses the character before the asterisk as a separator (e.g., a comma) and does not produce a trailing separator.#(#var ,)*— Produces a trailing separator.- Repetitions can contain multiple interpolations or other code structures.