Module wasm_bindgen_backend::util
source · Expand description
Common utility function for manipulating syn types and handling parsed values
Structs
Small utility used when generating symbol names.
Functions
Create a path type with a single segment from a given Identifier
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
.Create an
Ident
without checking to see if it conflicts with a Rust
keyword.Create an
Ident
, possibly mangling it if it conflicts with a Rust keyword.Create a 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
.Convert an ImportFunction into the more generic Import type, wrapping the provided function