Module wasm_bindgen_backend::ast
source · Expand description
A representation of the Abstract Syntax Tree of a Rust program, with all the added metadata necessary to generate WASM bindings for it.
Structs
Information about an Enum being exported
A rust to js interface. Allows interaction with rust objects/functions
from javascript.
Information about a function being imported or exported
Things imported from a JS module (in an
extern
block)The metadata for an Enum being imported
A function being imported from JS
The type of a static being imported
The metadata for a type being imported
An abstract syntax tree representing a link to a module in Rust.
In contrast to Program, LinkToModule must expand to an expression.
linked_modules of the inner Program must contain exactly one element
whose link is produced by the expression.
The operation performed by a class method
An abstract syntax tree representing a rust program. Contains
extra information for joining up this rust code with javascript.
Information about a Struct being exported
The field of a struct
The variant of an enum
Enums
The type of a function being imported
The type of item being imported
The possible types of module to import from
The type of a method
The 3 types variations of
self
.The kind of operation performed by a method
Unused, the type of an argument to / return from a function
Unused, the location of a type for a function argument (import/export, argument/ret)