Skip to main content

Module component

Module component 

Source
Expand description

ArkheComponent sealed trait + BoundedString<N>.

Components are ECS storage units. Each impl carries a stable TYPE_CODE (runtime registry pin, A15) and SCHEMA_VERSION (monotone increment on field addition; removal / reorder forbidden — Enum WAL compat).

BoundedString<N> wraps arrayvec::ArrayString<N> so N is a compile-time capacity bound. The wrapper is sealed — downstream code cannot see the internal representation, letting us swap ArrayString for another backend without breaking wire format.

Structs§

BoundedString
Fixed-capacity UTF-8 string — bounded at compile time by const generic N.

Enums§

BoundedStringError
Failure variants for BoundedString.

Traits§

ArkheComponent
Sealed marker trait for ECS Component types. Implementations are produced only by #[derive(ArkheComponent)] — manual downstream impls are rejected by the Sealed supertrait and the Runtime dylint gate.