Enum wast::Index [−][src]
Expand description
A reference to another item in a wasm module.
This type is used for items referring to other items (such as call $foo
referencing function $foo
). References can be either an index (u32) or an
Id
in the textual format.
The emission phase of a module will ensure that Index::Id
is never used
and switch them all to Index::Num
.
Variants
A numerical index that this references. The index space this is
referencing is implicit based on where this Index
is stored.
Id(Id<'a>)
A human-readable identifier this references. Like Num
, the namespace
this references is based on where this is stored.
Tuple Fields of Id
0: Id<'a>
Implementations
Trait Implementations
Returns a human-readable name of this token to display when generating errors about this token missing. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Index<'a>
impl<'a> UnwindSafe for Index<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more