Crate components_arena
source ·Expand description
Feature flags
nightly
(enabled by default) — disable to make the library compatible with stable and beta Rust channels.
Macros
- Macro attribute for deriving
Component
trait. - Macro attribute for deriving
ComponentId
trait.
Structs
- Unordered container with random access.
- An iterator over all items ids.
- An iterator over all items ids.
- An iterator over all items combined with their ids.
- An iterator over all items.
- An iterator over all items combined with their ids.
- A mutable iterator over all items combined with their ids.
- An iterator over all items.
- A mutable iterator over all items.
- Component class static shared data. The return type of the
ComponentClass::token
function. Arena
item handle.
Traits
- An implementer of the
Component
trait is a type, whose values can be placed intoArena
container. - An utility trait describing a specific component type.
- An implementer of the
ComponentId
trait is a type behaves asId
.
Type Definitions
- Non-generic, FFI-friendly
ComponentId
representaion.