[][src]Module nitric_component::id

Provides a generic ID interface.

IDs are used as keys for component storages. They can be continuous or sparse, while only the latter one allows to delete arbitrary ids after creation.

Structs

CheckedId

Represents an ID that is guaranteed to be valid.

Traits

Continuous

A trait that marks an ID as continuous. The following properties are required to hold:

Id

Top-level trait that all IDs must implement.

MergingDeletion

An ID that will only turn invalid when merged.

SparseLinear

An ID that can be used for sparse storages and behaves somewhat linear, meaning it starts at zero and does not use higher numbers than necessary.

ValidId

Represents an ID that is guaranteed to be valid.

WrapperId

An ID that wraps another ID. It mirrors all basic ID property the wrapped ID has, through respective blanket implementations.