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

7 lines
255 B
Rust
Raw Normal View History

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