10 lines
136 B
Rust
10 lines
136 B
Rust
|
pub type ID = std::any::TypeId;
|
||
|
|
||
|
|
||
|
pub trait Component: 'static {
|
||
|
}
|
||
|
|
||
|
pub fn id<T: Component>() -> ID {
|
||
|
std::any::TypeId::of::<T>()
|
||
|
}
|