pub trait Patchable { type Patch: Clone; // Required method fn patch(&mut self, patch: Self::Patch); }
A data structure that can be updated using corresponding patches.
The type of patch associated with this structure.
Applies the given patch to update the structure.