Trait wasmtime_environ::EntityRef
source · pub trait EntityRef: Copy + Eq {
// Required methods
fn new(_: usize) -> Self;
fn index(self) -> usize;
}
Expand description
A type wrapping a small integer index should implement EntityRef
so it can be used as the key
of an SecondaryMap
or SparseMap
.