[go: up one dir, main page]

Module core

Module core 

Source
Expand description

Types and support for parsing the core wasm text format.

Structs§

ArrayCopy
Extra data associated with the array.copy instruction
ArrayFill
Extra data associated with the array.fill instruction
ArrayInit
Extra data associated with the array.init_[data/elem] instruction
ArrayNewData
Extra data associated with the array.new_data instruction
ArrayNewElem
Extra data associated with the array.new_elem instruction
ArrayNewFixed
Extra data associated with the array.new_fixed instruction
ArrayType
An array type with fields.
BlockType
Extra information associated with block-related instructions.
BrOnCast
Extra data associated with the br_on_cast instruction
BrOnCastDesc
Extra data associated with the br_on_cast_desc instruction
BrOnCastDescFail
Extra data associated with the br_on_cast_desc_fail instruction
BrOnCastFail
Extra data associated with the br_on_cast_fail instruction
BrTableIndices
Extra information associated with the br_table instruction.
BranchHint
A @metadata.code.branch_hint in the code, associated with a If or BrIf This instruction is a placeholder and won’t produce anything. Its purpose is to store the offset of the following instruction and check that it’s followed by br_if or if.
CallIndirect
Extra data associated with the call_indirect instruction.
ContBind
Extra information associated with the cont.bind instruction
ContType
A continuation type.
Data
A data directive in a WebAssembly module.
Dylink0
A dylink.0 custom section
Elem
An elem segment in a WebAssembly module.
EncodeOptions
Options that can be specified when encoding a component or a module to customize what the final binary looks like.
Export
A entry in a WebAssembly module’s export section.
ExportType
The type of an exported item from a module or instance.
Expression
An expression, or a list of instructions, in the WebAssembly text format.
Func
A WebAssembly function to be inserted into a module.
FunctionType
A function type with parameters and results.
FunctionTypeNoNames
A function type with parameters and results.
Global
A WebAssembly global in a module
GlobalType
Type for a global in a wasm module
I8x16Shuffle
Lanes being shuffled in the i8x16.shuffle instruction
Import
An import statement and entry in a WebAssembly module.
InlineExport
A listing of inline (export "foo") statements on a WebAssembly item in its textual format.
InlineImport
A listing of a inline (import "foo") statement.
ItemSig
LaneArg
Payload for lane-related instructions. Unsigned with no + prefix.
Limits
Min/max limits used for tables/memories.
LoadOrStoreLane
Extra data associated with the loadN_lane and storeN_lane instructions.
Local
A local for a func or let instruction.
LocalParser
Parser for local instruction.
MemArg
Payload for memory-related instructions indicating offset/alignment of memory accesses.
Memory
A defined WebAssembly memory instance inside of a module.
MemoryArg
Extra data associated with unary memory instructions.
MemoryCopy
Extra data associated with the memory.copy instruction
MemoryInit
Extra data associated with the memory.init instruction
MemoryType
Configuration for a memory of a wasm module
Module
A parsed WebAssembly core module.
Names
Representation of the results of name resolution for a module.
Ordered
Add a memory Ordering to the argument T of some instruction.
Producers
A producers custom section
RawCustomSection
A wasm custom section within a module.
Rec
A recursion group declaration in a module
RefCast
Extra data associated with the ref.cast instruction
RefCastDesc
Extra data associated with the ref.cast_desc instruction
RefTest
Extra data associated with the ref.test instruction
RefType
A reference type in a wasm module.
Resume
Extra information associated with the resume instruction
ResumeTable
A representation of resume tables
ResumeThrow
Extra information associated with the resume_throw instruction
SelectTypes
Payload of the select instructions
StructAccess
Extra data associated with the struct.get/set instructions
StructField
A field of a struct type.
StructType
A struct type with fields.
Switch
Extra information associated with the switch instruction
Table
A WebAssembly table directive in a module.
TableArg
Extra data associated with unary table instructions.
TableCopy
Extra data associated with the table.copy instruction.
TableInit
Extra data associated with the table.init instruction
TableType
Configuration for a table of a wasm module.
Tag
A WebAssembly tag directive, part of the exception handling proposal.
TryTable
TryTableCatch
Type
A type declaration in a module
TypeDef
A definition of a type.
TypeUse
A reference to a type defined in this module.

Enums§

AbstractHeapType
An abstract heap type.
Custom
A custom section within a wasm module.
CustomPlace
Possible locations to place a custom section within a module.
CustomPlaceAnchor
Known sections that custom sections can be placed relative to.
DataKind
Different kinds of data segments, either passive or active.
DataVal
Differnet ways the value of a data segment can be defined.
Dylink0Subsection
Possible subsections of the dylink.0 custom section
ElemKind
Different ways to define an element segment in an mdoule.
ElemPayload
Different ways to define the element segment payload in a module.
ExportKind
Different kinds of elements that can be exported from a WebAssembly module, contained in an Export.
FuncKind
Possible ways to define a function in the text format.
GenerateDwarf
Configuration of how DWARF debugging information may be generated.
GlobalKind
Different kinds of globals that can be defined in a module.
Handle
A representation of resume table entries
HeapType
A heap type for a reference type.
InnerTypeKind
The inner kind of a type definition.
Instruction
A listing of all WebAssembly instructions that can be in a module that this crate currently parses.
ItemKind
MemoryKind
Different syntactical ways a memory can be defined in a module.
ModuleField
A listing of all possible fields that can make up a WebAssembly module.
ModuleKind
The different kinds of ways to define a module.
NanPattern
Either a NaN pattern (nan:canonical, nan:arithmetic) or a value of type T.
Ordering
The memory ordering for atomic instructions.
StorageType
The types of values that may be used in a struct or array.
TableKind
Different ways to textually define a table.
TagKind
Different kinds of tags that can be defined in a module.
TagType
Listing of various types of tags that can be defined in a wasm module.
TryTableCatchKind
V128Const
Different ways to specify a v128.const instruction
V128Pattern
A version of V128Const that allows NanPatterns.
ValType
The value types for a wasm module.
WastArgCore
Expression that can be used inside of invoke expressions for core wasm functions.
WastRetCore
Expressions that can be used inside of assert_return to validate the return value of a core wasm function.

Functions§

page_size
Parse (pagesize N) or nothing.