Struct shard_ecs::entity_registry::entry::EntityEntry[][src]

#[repr(C, align(2))]
pub struct EntityEntry { /* fields omitted */ }
Expand description

Represents entity reference to the archetype + index + Version. MEMORY_LAYOUTS: Valid: |version: u8|idx_in_arch: u24|arch_idx: u16| Invalid: |version: u8|next_fr_slt: u24|INV_ARCH: u16|

Implementations

Returns the version of the entry.

Sets the version of the entity.

Returns true if the entity entry is valid.

Sets the entry to invalid.

Sets the archetype index.

Returns the archetype index of the entry.

Returns the index in archetype of the entry.

Sets the index in archetype for the entry.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.