Documentation
1
2
3
4
5
6
7
8
9
mod _impl;

use serde::{de::DeserializeOwned, Serialize};

pub trait ShadowPatch: Serialize {
    type PatchState: Serialize + DeserializeOwned + Default + Clone;

    fn apply_patch(&mut self, opt: Self::PatchState);
}