Component

Trait Component 

Source
pub trait Component
where Self: Send + Sync + 'static,
{ }
Expand description

A component that can be attached to an entity in a crate::World.

An entity can have multiple components, which can be queried using crate::Query.

Implementors§

Source§

impl<T: Send + Sync + 'static> Component for T