Enum wasm_encoder::adapter::TypeRef [−][src]
pub enum TypeRef {
Instance(u32),
Module(u32),
Function(u32),
Table(TableType),
Memory(MemoryType),
Global(GlobalType),
}
Expand description
Represents a reference to a type definition.
Variants
Instance(u32)
Tuple Fields
0: u32
The definition is an instance.
The value is an index in the types index space. The index must be to an instance type.
Module(u32)
Tuple Fields
0: u32
The definition is a module.
The value is an index in the types index space. The index must be to a module type.
Function(u32)
Tuple Fields
0: u32
The definition is a core wasm function.
The value is an index in the types index space. The index must be to a function type.
Table(TableType)
Tuple Fields
0: TableType
The definition is a core wasm table.
Memory(MemoryType)
Tuple Fields
0: MemoryType
The definition is a core wasm memory.
Global(GlobalType)
Tuple Fields
0: GlobalType
The definition is a core wasm global.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for TypeRef
impl UnwindSafe for TypeRef
Blanket Implementations
Mutably borrows from an owned value. Read more