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