moecs 0.1.0

Micro ECS engine. A small and lightweight ECS engine for Rust projects.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// `PropertyId` is essentially a stand-in for `TypeId` that's usable on non-`static` traits.
/// Useful when a given implementation does not have a `static` lifetime (e.g. `SystemParam`s).
pub trait PropertyId {
    fn property_id() -> u64
    where
        Self: Sized;
    fn property_string() -> &'static str
    where
        Self: Sized;
    fn self_property_id(&self) -> u64;
    fn self_property_string(&self) -> &'static str;
}