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§

Apply the patch, only update the existing fields

Provided Methods§

Get an empty patch instance

Implementors§