//! state managment for stateful elements use hashbrown::{HashMap, HashSet}; use nohash_hasher::BuildNoHashHasher; use std::any::Any; //TODO impl StateRepo functions and automatic cleanup of inactive ids #[derive(Default)] pub struct StateRepo { state: HashMap, BuildNoHashHasher>, active_ids: HashSet> }