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§
const CHUNK_SIZE: u32
Provided Associated Constants§
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 Methods§
fn to_chunk_start_and_intra_chunk_idx(self) -> (Self, usize)
Object Safety§
This trait is not object safe.