I have a lot of type constraints, and I would like to make it more readable. For example, is there a way to simplify this:
<P: Serialize + Clone + Eq + std::hash::Hash + std::fmt::Display, E: Serialize + Clone + Eq + std::hash::Hash + std::fmt::Display>
Can I remove this duplication somehow, maybe with a where statement to make it something like this:
where P + E: Serialize + Clone + Eq + std::hash::Hash + std::fmt::Display
It just seems wrong to have it so large.