Trait wasmtime_environ::entity::EntityRef [−][src]
A type wrapping a small integer index should implement EntityRef so it can be used as the key
of an SecondaryMap or SparseMap.
Required methods
pub fn new(usize) -> Self[src]
Create a new entity reference from a small integer. This should crash if the requested index is not representable.
pub fn index(self) -> usize[src]
Get the index that was used to create this entity reference.
Implementations on Foreign Types
impl EntityRef for GlobalValue[src]
impl EntityRef for GlobalValue[src]impl EntityRef for StackSlot[src]
impl EntityRef for StackSlot[src]impl EntityRef for Constant[src]
impl EntityRef for Constant[src]impl EntityRef for VCodeConstant[src]
impl EntityRef for VCodeConstant[src]impl EntityRef for FuncRef[src]
impl EntityRef for FuncRef[src]impl EntityRef for RegClassIndex[src]
impl EntityRef for RegClassIndex[src]impl EntityRef for Immediate[src]
impl EntityRef for Immediate[src]impl EntityRef for JumpTable[src]
impl EntityRef for JumpTable[src]impl EntityRef for SigRef[src]
impl EntityRef for SigRef[src]impl EntityRef for MachLabel[src]
impl EntityRef for MachLabel[src]impl EntityRef for Variable[src]
impl EntityRef for Variable[src]Implementors
impl EntityRef for ValueLabel[src]
impl EntityRef for ValueLabel[src]impl EntityRef for DefinedFuncIndex[src]
impl EntityRef for DefinedFuncIndex[src]impl EntityRef for DefinedGlobalIndex[src]
impl EntityRef for DefinedGlobalIndex[src]impl EntityRef for DefinedMemoryIndex[src]
impl EntityRef for DefinedMemoryIndex[src]impl EntityRef for DefinedTableIndex[src]
impl EntityRef for DefinedTableIndex[src]impl EntityRef for EventIndex[src]
impl EntityRef for EventIndex[src]impl EntityRef for GlobalIndex[src]
impl EntityRef for GlobalIndex[src]impl EntityRef for InstanceIndex[src]
impl EntityRef for InstanceIndex[src]impl EntityRef for InstanceTypeIndex[src]
impl EntityRef for InstanceTypeIndex[src]impl EntityRef for MemoryIndex[src]
impl EntityRef for MemoryIndex[src]impl EntityRef for ModuleIndex[src]
impl EntityRef for ModuleIndex[src]impl EntityRef for ModuleTypeIndex[src]
impl EntityRef for ModuleTypeIndex[src]impl EntityRef for SignatureIndex[src]
impl EntityRef for SignatureIndex[src]impl EntityRef for TableIndex[src]
impl EntityRef for TableIndex[src]