pub trait Component: 'static + Sized + Send + Sync {
type Storage: for<'a> ComponentStorage<'a, Self>;
}
Expand description
A marker trait for all types which can be attached to an entity.
This trait has a blanket impl for all applicable types.
Associated Types
type Storage: for<'a> ComponentStorage<'a, Self>
type Storage: for<'a> ComponentStorage<'a, Self>
The storage type required to hold all instances of this component in a world.