Skip to main content

ArenaKey

Trait ArenaKey 

Source
pub trait ArenaKey: Copy {
    // Required methods
    fn from_raw(raw: u32) -> Self;
    fn to_raw(self) -> u32;
}
Expand description

A type usable as an arena key: a newtype around a u32 index.

Required Methods§

Source

fn from_raw(raw: u32) -> Self

Build a key from a raw slot index.

Source

fn to_raw(self) -> u32

The raw slot index of this key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§