pub trait Component:
'static
+ Send
+ Sync { }
Expand description
A marker trait for types that can be used as components in the ECS.
This trait must be implemented for any struct you wish to attach to an entity.
The 'static
lifetime ensures that the component type does not contain any
non-static references, and Send + Sync
are required to allow the component
data to be safely accessed from multiple threads.