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§

source

fn into_usize(self) -> usize

Converts the ArenaIndex into the underlying usize value.

source

fn from_usize(value: usize) -> Self

Converts the usize value into the associated ArenaIndex.

Object Safety§

This trait is not object safe.

Implementors§