Trait components_arena::Component
source · [−]pub trait Component {
type Class: ComponentClass;
type Alloc: Allocator = DefaultAlloc;
}Expand description
An implementer of the Component trait is a type, whose values can be placed into
Arena container.
Normally, the implementation of this trait is derived
using the Component! macro.
Required Associated Types
type Class: ComponentClass
type Class: ComponentClass
Component class.
Normally it is Self for non-generic types, and
non-generic synthetic uninhabited type for generic ones.
Provided Associated Types
type Alloc: Allocator = DefaultAlloc
type Alloc: Allocator = DefaultAlloc
Component allocator.
Arena<Self> will use this allocator to allocate memory
for components array.