1
2
3
4
5
6
7
8
9
pub mod traits {
    pub trait Patch<P: Default> {
        fn apply(&mut self, patch: P);

        fn default_patch() -> P {
            P::default()
        }
    }
}