pub trait Entity { type Update; type Id: Ord + Hash + Copy; // Required method fn apply(&mut self, update: &Self::Update); }