Trait cranelift_entity::EntityRef
source · [−]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
.
Required methods
Create a new entity reference from a small integer. This should crash if the requested index is not representable.