[][src]Trait wasmtime_environ::entity::EntityRef

pub trait EntityRef: Eq + Copy {
    fn new(usize) -> Self;
fn index(self) -> usize; }

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

fn new(usize) -> Self

Create a new entity reference from a small integer. This should crash if the requested index is not representable.

fn index(self) -> usize

Get the index that was used to create this entity reference.

Loading content...

Implementations on Foreign Types

impl EntityRef for JumpTable[src]

impl EntityRef for Value[src]

impl EntityRef for SigRef[src]

impl EntityRef for GlobalValue[src]

impl EntityRef for RegClassIndex[src]

impl EntityRef for FuncRef[src]

impl EntityRef for Heap[src]

impl EntityRef for Loop[src]

impl EntityRef for Table[src]

impl EntityRef for Constant[src]

impl EntityRef for Immediate[src]

impl EntityRef for Block[src]

impl EntityRef for StackSlot[src]

impl EntityRef for Inst[src]

impl EntityRef for Variable

Loading content...

Implementors

impl EntityRef for ValueLabel[src]

impl EntityRef for DataIndex[src]

impl EntityRef for DefinedFuncIndex[src]

impl EntityRef for DefinedGlobalIndex[src]

impl EntityRef for DefinedMemoryIndex[src]

impl EntityRef for DefinedTableIndex[src]

impl EntityRef for ElemIndex[src]

impl EntityRef for FuncIndex[src]

impl EntityRef for GlobalIndex[src]

impl EntityRef for MemoryIndex[src]

impl EntityRef for SignatureIndex[src]

impl EntityRef for TableIndex[src]

Loading content...