Trait spirt::context::sealed::Entity

source ·
pub trait Entity: Sized + Copy + Eq + Hash + 'static {
    type Def;

    const CHUNK_SIZE: u32;
    const CHUNK_MASK: u32 = _;

    // Required methods
    fn from_non_zero_u32(i: NonZeroU32) -> Self;
    fn to_non_zero_u32(self) -> NonZeroU32;
    fn cx_entity_alloc(cx: &Context) -> &EntityAlloc<Self>;

    // Provided method
    fn to_chunk_start_and_intra_chunk_idx(self) -> (Self, usize) { ... }
}

Required Associated Types§

Required Associated Constants§

Provided Associated Constants§

Required Methods§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§