use syn::punctuated::Punctuated; use syn::token::Paren; use syn::TypeTuple; pub fn create_unit_type_tuple() -> TypeTuple { TypeTuple { paren_token: Paren::default(), elems: Punctuated::new(), } } macro_rules! create_path { ($($segment: ident)::+) => { Path::new( WithLeadingColons::No, [$(PathSegment::new(format_ident!(stringify!($segment)), None))+], ) }; } pub(crate) use create_path;