Macro path

Source
macro_rules! path {
    (:: $($segment:ident)::*) => { ... };
    ($($segment:ident)::*) => { ... };
}
Expand description

This macro takes paths of the form my_crate::my_mod::FooBar and ::my_crate::my_mod::FooBar and turns them into a syn::Path.