Trait wasmer_types::entity::EntityRef[][src]

pub trait EntityRef: Eq + Copy {
    pub fn new(usize) -> Self;
pub 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

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.

Loading content...

Implementors

impl EntityRef for CustomSectionIndex[src]

impl EntityRef for DataIndex[src]

impl EntityRef for ElemIndex[src]

impl EntityRef for FunctionIndex[src]

impl EntityRef for GlobalIndex[src]

impl EntityRef for LocalFunctionIndex[src]

impl EntityRef for LocalGlobalIndex[src]

impl EntityRef for LocalMemoryIndex[src]

impl EntityRef for LocalTableIndex[src]

impl EntityRef for MemoryIndex[src]

impl EntityRef for SignatureIndex[src]

impl EntityRef for TableIndex[src]

Loading content...