Skip to main content

Component

Trait Component 

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

Marker trait for types that can be stored as ECS components.

Derive with #[derive(Component)] from galeon_engine_macros.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§