1 2 3 4 5 6 7 8 9 10
use std::{ any::{Any, TypeId}, rc::Rc, }; use im_rc::HashMap; #[derive(Clone, Default)] pub struct ContextMap { pub(crate) inner: HashMap<TypeId, Rc<dyn Any>>, }