lyra-engine/lyra-ecs/src/component.rs

7 lines
255 B
Rust

/// Shorthand for `Send + Sync + 'static`, so it never needs to be implemented manually.
/* pub trait Component: Send + Sync + 'static {}
impl<T: Send + Sync + 'static> Component for T {} */
pub trait Component: 'static {
fn name() -> &'static str;
}