Macro syn::tuple [] [src]

macro_rules! tuple {
    ($i:expr, $($rest:tt)+) => { ... };
}

Run a series of parsers and produce all of the results in a tuple.

#[macro_use]
extern crate syn;

use syn::Type;

named!(two_types -> (Type, Type), tuple!(syn!(Type), syn!(Type)));

This macro is available if Syn is built with the "parsing" feature.