Expand description
This crate contains macros to construct syn
-types that contain paths inside a
procedural macro.
- The
path!
macro constructs asyn::Path
. - The
type_path!
macro constructs asyn::TypePath
. - The
ty!
macro constructs asyn::Type
.
Macrosยง
- path
- This macro takes paths of the form
my_crate::my_mod::FooBar
and::my_crate::my_mod::FooBar
and turns them into asyn::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 asyn::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 asyn::TypePath
.