split_comma_args

Function split_comma_args 

Source
fn split_comma_args(s: &str) -> Vec<String>
Expand description

Split a token stream that represents a comma-separated argument list into per-argument substrings, respecting bracket/paren/brace nesting and string literals. Operates on the (already-bounded) macro-arg token text.

Angle brackets are tracked as a separate depth so that generic-type commas like Registered<ComponentEventsDropped<'static, INTENTIONAL>> don’t fragment a registered_event! field. > only decrements when there is a matching <, so the > in key => value tag pairs (used by counter! args) doesn’t underflow.