Enum wasm_encoder::adapter::IndexRef [−][src]
pub enum IndexRef {
Instance(u32),
Module(u32),
Function(u32),
Table(u32),
Memory(u32),
Global(u32),
}
Expand description
Represents a reference to an index in a WebAssembly section.
Variants
Instance(u32)
Tuple Fields
0: u32
The reference is to an instance in the instance section.
Module(u32)
Tuple Fields
0: u32
The reference is to a module in the module section.
Function(u32)
Tuple Fields
0: u32
The reference is to a function in the function section.
Table(u32)
Tuple Fields
0: u32
The reference is to a table in the table section.
Memory(u32)
Tuple Fields
0: u32
The reference is to a memory in the memory section.
Global(u32)
Tuple Fields
0: u32
The reference is to a global in the global section.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for IndexRef
impl UnwindSafe for IndexRef
Blanket Implementations
Mutably borrows from an owned value. Read more