Hashmap as a trait?

Sure. Here is the problem. No luck to find a solution so far.