Trait struct_patch_trait::traits::Patch
source · pub trait Patch<P: Default> {
fn apply(&mut self, patch: P);
fn default_patch() -> P { ... }
}Expand description
The trait can apply patch and generete corresponding patch instance
Required Methods§
Provided Methods§
sourcefn default_patch() -> P
fn default_patch() -> P
Get an empty patch instance