Expand description
Types and support for parsing the core wasm text format.
Structs§
- Array
Copy - Extra data associated with the
array.copyinstruction - Array
Fill - Extra data associated with the
array.fillinstruction - Array
Init - Extra data associated with the
array.init_[data/elem]instruction - Array
NewData - Extra data associated with the
array.new_datainstruction - Array
NewElem - Extra data associated with the
array.new_eleminstruction - Array
NewFixed - Extra data associated with the
array.new_fixedinstruction - Array
Type - An array type with fields.
- Block
Type - Extra information associated with block-related instructions.
- BrOn
Cast - Extra data associated with the
br_on_castinstruction - BrOn
Cast Desc - Extra data associated with the
br_on_cast_descinstruction - BrOn
Cast Desc Fail - Extra data associated with the
br_on_cast_desc_failinstruction - BrOn
Cast Fail - Extra data associated with the
br_on_cast_failinstruction - BrTable
Indices - Extra information associated with the
br_tableinstruction. - Branch
Hint - A
@metadata.code.branch_hintin 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 bybr_iforif. - Call
Indirect - Extra data associated with the
call_indirectinstruction. - Cont
Bind - Extra information associated with the cont.bind instruction
- Cont
Type - A continuation type.
- Data
- A
datadirective in a WebAssembly module. - Dylink0
- A
dylink.0custom section - Elem
- An
elemsegment in a WebAssembly module. - Encode
Options - 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.
- Export
Type - 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.
- Function
Type - A function type with parameters and results.
- Function
Type NoNames - A function type with parameters and results.
- Global
- A WebAssembly global in a module
- Global
Type - Type for a
globalin a wasm module - I8x16
Shuffle - Lanes being shuffled in the
i8x16.shuffleinstruction - Import
- An
importstatement and entry in a WebAssembly module. - Inline
Export - A listing of inline
(export "foo")statements on a WebAssembly item in its textual format. - Inline
Import - 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.
- Load
OrStore Lane - Extra data associated with the
loadN_laneandstoreN_laneinstructions. - Local
- A local for a
funcorletinstruction. - Local
Parser - Parser for
localinstruction. - MemArg
- Payload for memory-related instructions indicating offset/alignment of memory accesses.
- Memory
- A defined WebAssembly memory instance inside of a module.
- Memory
Arg - Extra data associated with unary memory instructions.
- Memory
Copy - Extra data associated with the
memory.copyinstruction - Memory
Init - Extra data associated with the
memory.initinstruction - Memory
Type - 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
Orderingto the argumentTof some instruction. - Producers
- A producers custom section
- RawCustom
Section - A wasm custom section within a module.
- Rec
- A recursion group declaration in a module
- RefCast
- Extra data associated with the
ref.castinstruction - RefCast
Desc - Extra data associated with the
ref.cast_descinstruction - RefTest
- Extra data associated with the
ref.testinstruction - RefType
- A reference type in a wasm module.
- Resume
- Extra information associated with the resume instruction
- Resume
Table - A representation of resume tables
- Resume
Throw - Extra information associated with the resume_throw instruction
- Select
Types - Payload of the
selectinstructions - Struct
Access - Extra data associated with the
struct.get/setinstructions - Struct
Field - A field of a struct type.
- Struct
Type - A struct type with fields.
- Switch
- Extra information associated with the switch instruction
- Table
- A WebAssembly
tabledirective in a module. - Table
Arg - Extra data associated with unary table instructions.
- Table
Copy - Extra data associated with the
table.copyinstruction. - Table
Init - Extra data associated with the
table.initinstruction - Table
Type - Configuration for a table of a wasm module.
- Tag
- A WebAssembly tag directive, part of the exception handling proposal.
- TryTable
- TryTable
Catch - Type
- A type declaration in a module
- TypeDef
- A definition of a type.
- TypeUse
- A reference to a type defined in this module.
Enums§
- Abstract
Heap Type - An abstract heap type.
- Custom
- A custom section within a wasm module.
- Custom
Place - Possible locations to place a custom section within a module.
- Custom
Place Anchor - Known sections that custom sections can be placed relative to.
- Data
Kind - Different kinds of data segments, either passive or active.
- DataVal
- Differnet ways the value of a data segment can be defined.
- Dylink0
Subsection - Possible subsections of the
dylink.0custom section - Elem
Kind - Different ways to define an element segment in an mdoule.
- Elem
Payload - Different ways to define the element segment payload in a module.
- Export
Kind - Different kinds of elements that can be exported from a WebAssembly module,
contained in an
Export. - Func
Kind - Possible ways to define a function in the text format.
- Generate
Dwarf - Configuration of how DWARF debugging information may be generated.
- Global
Kind - Different kinds of globals that can be defined in a module.
- Handle
- A representation of resume table entries
- Heap
Type - A heap type for a reference type.
- Inner
Type Kind - 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.
- Item
Kind - Memory
Kind - Different syntactical ways a memory can be defined in a module.
- Module
Field - A listing of all possible fields that can make up a WebAssembly module.
- Module
Kind - The different kinds of ways to define a module.
- NanPattern
- Either a NaN pattern (
nan:canonical,nan:arithmetic) or a value of typeT. - Ordering
- The memory ordering for atomic instructions.
- Storage
Type - The types of values that may be used in a struct or array.
- Table
Kind - 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.
- TryTable
Catch Kind - V128
Const - Different ways to specify a
v128.constinstruction - V128
Pattern - A version of
V128Constthat allowsNanPatterns. - ValType
- The value types for a wasm module.
- Wast
ArgCore - Expression that can be used inside of
invokeexpressions for core wasm functions. - Wast
RetCore - Expressions that can be used inside of
assert_returnto validate the return value of a core wasm function.
Functions§
- page_
size - Parse
(pagesize N)or nothing.