Struct shard_ecs::descriptors::archetype_id::ArchetypeId [−][src]
#[repr(transparent)]pub struct ArchetypeId(_);
Expand description
Represents the unique subset of components as a comparable identifier.
See [ArchetypeDescriptor::compute_archetype_id
] for computing an instance of it.
The invalid archetype id is defined to be 0.
Implementations
The invalid archetype id, defined to be zero. Any archetype with this id must not be used as valid archetype.
Copies the value into an array of ne_bytes. (See u32::to_ne_bytes
).
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ArchetypeId
impl Send for ArchetypeId
impl Sync for ArchetypeId
impl Unpin for ArchetypeId
impl UnwindSafe for ArchetypeId
Blanket Implementations
Mutably borrows from an owned value. Read more