Crate syn_path

Crate syn_path 

Source
Expand description

This crate contains macros to construct syn-types that contain paths inside a procedural macro.

Macrosยง

path
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.
ty
This macro takes type paths of the form my_crate::my_mod::FooBar and <my_crate::my_mod::FooBar as my_crate::my_mod::MyTrait>::MyType and turns them into a syn::Type.
type_path
This macro takes type paths of the form my_crate::my_mod::FooBar and <my_crate::my_mod::FooBar as my_crate::my_mod::MyTrait>::MyType and turns them into a syn::TypePath.