Skip to main content

Crate waside

Crate waside 

Source
Expand description

A WebAssembly binary decoder, encoder, and WAT printer.

Structs§

ArrayType
An array type definition.
BrTableData
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.
CompositeType
A composite type definition.
ConstExpr
A constant expression (used in globals, element offsets, data offsets, etc.).
ContType
A continuation type.
CustomSection
A custom section (other than the name section).
Data
A data segment.
DecodeOptions
Options for decoding a wasm module.
Element
An element segment.
Export
An export entry.
FieldType
A field type used in structs and arrays.
Func
A function declaration (from the function section) — just a type index.
FuncBodyDef
A fully decoded function body.
FuncType
A function type signature.
Global
A global entry.
Import
An import entry.
Memory
A memory entry.
Module
A decoded WebAssembly module.
NameSection
Parsed name section data.
PlainTextPrinter
A simple printer that captures plain text, ignoring styling and xrefs.
PrintContext
Context for printing a module, providing name lookups and import counts.
RecGroup
A recursive type group.
Span
A byte range within a wasm binary.
StructType
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§

CompositeInnerType
The inner type of a composite type.
DataKind
The kind of data segment.
ElementItems
The items in an element segment.
ElementKind
The kind of element segment.
Error
Errors returned by waside operations.
ExternalKind
The kind of an exported item.
FuncBody
A function body, either fully decoded or lazy.
ImportType
The type of an import.
Instruction
ItemId
Definition identifier for linking between AST items.
StorageType
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::Result type with Error as the error variant.