pub trait AsHashMap { type Key: Hash + Eq + Clone; type Value: Clone; // Required method unsafe fn as_hash_map( &self, ) -> Result<HashMap<Self::Key, Self::Value>, CError>; }