bbecs_tutorial 1.0.3

An ECS library made for a tutorial.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::any::{Any, TypeId};

#[test]
fn generics() {
    let type_id = get_type_id::<u32>();
    dbg!(type_id);
    let type_id = get_type_id::<i32>();
    dbg!(type_id);
}

fn get_type_id<T: Any>() -> TypeId {
    TypeId::of::<T>()
}