macro_rules! path {
    (:: $($segment:ident)::*) => { ... };
    ($($segment:ident)::*) => { ... };
    (@private $leading_colon:expr, $($segment:ident),*) => { ... };
}
Expand description

An extremely 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.