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§
- Enum
- The metadata for an Enum
- Export
- A rust to js interface. Allows interaction with rust objects/functions from javascript.
- Function
- Information about a function being imported or exported
- Function
Argument Data - Information about a function’s argument
- Function
Return Data - Information about a function’s return
- Import
- Things imported from a JS module (in an
extern
block) - Import
Function - A function being imported from JS
- Import
Static - The type of a static being imported
- Import
String - The type of a static string being imported
- Import
Type - The metadata for a type being imported
- Link
ToModule - 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.
- Operation
- The operation performed by a class method
- Program
- An abstract syntax tree representing a rust program. Contains extra information for joining up this rust code with javascript.
- String
Enum - The metadata for a String Enum
- Struct
- Information about a Struct being exported
- Struct
Field - The field of a struct
- Variant
- The variant of an enum
Enums§
- Import
Function Kind - The type of a function being imported
- Import
Kind - The type of item being imported
- Import
Module - The possible types of module to import from
- LitOr
Expr - An enum representing either a literal value (
Lit
) or an expression (syn::Expr
). - Method
Kind - The type of a method
- Method
Self - The 3 types variations of
self
. - Operation
Kind - The kind of operation performed by a method
- Thread
Local - Which version of the
thread_local
attribute is enabled. - Type
Kind - Unused, the type of an argument to / return from a function
- Type
Location - Unused, the location of a type for a function argument (import/export, argument/ret)