pub trait Component:
Sized
+ 'static
+ 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.
Required Associated Types§
Sourcetype 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.