Skip to main content

Component

Trait Component 

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

Marker trait for ECS components. Implement this for any 'static + Send + Sync + Clone type to use it as a component.

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.

Implementors§