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

Non-generic, FFI-friendly ComponentId representaion.

Trait Implementations§

§

impl<const host: bool = true> ComponentId<host> for RawId

§

const fn from_raw(raw: RawId) -> Self

Forms an id from the into_raw function result.
§

const fn into_raw(self) -> RawId

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