Expand description
Common utility function for manipulating syn types and handling parsed values
Structs§
- Short
Hash - Small utility used when generating symbol names.
Functions§
- ident_
ty - Create a path type with a single segment from a given Identifier
- leading_
colon_ path_ ty - Create a global path type from the given segments. For example an iterator
yielding the idents
[foo, bar, baz]
will result in the path type::foo::bar::baz
. - raw_
ident - Create an
Ident
without checking to see if it conflicts with a Rust keyword. - rust_
ident - Create an
Ident
, possibly mangling it if it conflicts with a Rust keyword. - simple_
path_ ty - Create a path type from the given segments. For example an iterator yielding
the idents
[foo, bar, baz]
will result in the path typefoo::bar::baz
. - wrap_
import_ function - Convert an ImportFunction into the more generic Import type, wrapping the provided function