Trait wasmi_collections::arena::ArenaIndex
source · pub trait ArenaIndex: Copy {
// Required methods
fn into_usize(self) -> usize;
fn from_usize(value: usize) -> Self;
}
Expand description
Types that can be used as indices for arenas.
Required Methods§
sourcefn into_usize(self) -> usize
fn into_usize(self) -> usize
Converts the ArenaIndex
into the underlying usize
value.
sourcefn from_usize(value: usize) -> Self
fn from_usize(value: usize) -> Self
Converts the usize
value into the associated ArenaIndex
.
Object Safety§
This trait is not object safe.