Expand description
A WebAssembly binary decoder, encoder, and WAT printer.
Structs§
- Array
Type - An array type definition.
- BrTable
Data - Owned data for a br_table instruction. wasmparser’s BrTable<’a> contains a BinaryReader with a lifetime, so we convert it to this owned representation.
- Composite
Type - A composite type definition.
- Const
Expr - A constant expression (used in globals, element offsets, data offsets, etc.).
- Cont
Type - A continuation type.
- Custom
Section - A custom section (other than the name section).
- Data
- A data segment.
- Decode
Options - Options for decoding a wasm module.
- Element
- An element segment.
- Export
- An export entry.
- Field
Type - A field type used in structs and arrays.
- Func
- A function declaration (from the function section) — just a type index.
- Func
Body Def - A fully decoded function body.
- Func
Type - A function type signature.
- Global
- A global entry.
- Import
- An import entry.
- Memory
- A memory entry.
- Module
- A decoded WebAssembly module.
- Name
Section - Parsed name section data.
- Plain
Text Printer - A simple printer that captures plain text, ignoring styling and xrefs.
- Print
Context - Context for printing a module, providing name lookups and import counts.
- RecGroup
- A recursive type group.
- Span
- A byte range within a wasm binary.
- Struct
Type - A struct type definition.
- SubType
- A subtype definition within a rec group.
- Table
- A table entry.
- Tag
- A tag entry.
- TagType
- A tag type.
Enums§
- Composite
Inner Type - The inner type of a composite type.
- Data
Kind - The kind of data segment.
- Element
Items - The items in an element segment.
- Element
Kind - The kind of element segment.
- Error
- Errors returned by waside operations.
- External
Kind - The kind of an exported item.
- Func
Body - A function body, either fully decoded or lazy.
- Import
Type - The type of an import.
- Instruction
- ItemId
- Definition identifier for linking between AST items.
- Storage
Type - Storage type for fields.
- Style
- Text styling hints for rich output.
- TagKind
- The kind of a tag.
Traits§
- Item
- Trait for AST items that can be identified by an
ItemId. - Printer
- Trait for outputting WAT text with optional styling and cross-references.
Type Aliases§
- Result
- A
std::result::Resulttype withErroras the error variant.