Skip to main content

Component

Trait Component 

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

The ECS: entities, components, queries, resources, commands. Any Send + Sync + 'static type can be a component. No derive needed.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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