macro_rules! path {
(:: $($segment:ident)::*) => { ... };
($($segment:ident)::*) => { ... };
}
Expand description
A simple macro that can take paths of the form my_crate::my_mod::FooBar
and
::my_crate::my_mod::FooBar
and turn them into a syn::Path
.