blob: 363051f580e9c251d2f82133417a4a490175127f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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;
|