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§

Component
Macro attribute for deriving Component trait.
NewtypeComponentId
Macro attribute for deriving ComponentId trait.

Structs§

Arena
Unordered container with random access.
ArenaItems
A (mostly read-only) inner container holding Arena items. While Arena itself is unique (i.e. non-clonable) object, arena ‘items’ could be cloned.
ArenaItemsIds
An iterator over all items ids.
ArenaItemsIntoIds
An iterator over all items ids.
ArenaItemsIntoIter
An iterator over all items combined with their ids.
ArenaItemsIntoValues
An iterator over all items.
ArenaItemsIter
An iterator over all items combined with their ids.
ArenaItemsIterMut
A mutable iterator over all items combined with their ids.
ArenaItemsValues
An iterator over all items.
ArenaItemsValuesMut
A mutable iterator over all items.
ComponentClassToken
Component class static shared data. The return type of the ComponentClass::token function.
Id
Arena item handle.

Traits§

Component
An implementer of the Component trait is a type, whose values can be placed into Arena container.
ComponentClass
An utility trait describing a specific component type.
ComponentId
An implementer of the ComponentId trait is a type behaves as Id.

Type Aliases§

RawId
Non-generic, FFI-friendly ComponentId representaion.