Macro proc_easy::easy_separated
source · [−]macro_rules! easy_separated {
(
@($punct:ident)
$(#[$meta:meta])*
$vis:vis struct $name:ident {
$($(#[$fmeta:meta])* $fvis:vis $fname:ident : $ftype:ty),*
$(,)?
}
) => { ... };
}
Expand description
Defines structure and implements Parse
for it.
Fields will be parsed in any order separated by specified punctuation, not accepting trailing punctuation. Parsing continues as long as punctuation $punct is present at the head of the stream.