macro_rules! punc {
(value $value:expr) => { ... };
(pairs $first:expr; $($punctuation:expr => $next:expr),+ $(,)?) => { ... };
($value:ty) => { ... };
}Expand description
Names or constructs a nonempty comma-punctuated sequence.
punc!(T)namesPunctuated<T>.punc!(value first)constructs one value.punc!(pairs first; comma => second, ...)constructs a sequence while retaining every supplied typed comma and its span.