Type Alias components_arena::RawId

source ·
pub type RawId = (usize, NonZeroUsize);
Expand description

Non-generic, FFI-friendly ComponentId representaion.

Trait Implementations§

source§

impl<const host: bool = true> ComponentId<host> for (usize, NonZeroUsize)

source§

const fn from_raw(raw: (usize, NonZeroUsize)) -> (usize, NonZeroUsize)

Forms an id from the into_raw function result.
source§

const fn into_raw(self) -> (usize, NonZeroUsize)

Transforms the id to primitive-typed parts, which can be easily passed through FFI and stored in non-generic context. Read more