Patchable

Trait Patchable 

Source
pub trait Patchable {
    type Patch: Clone;

    // Required method
    fn patch(&mut self, patch: Self::Patch);
}
Expand description

A data structure that can be updated using corresponding patches.

Required Associated Types§

Source

type Patch: Clone

The type of patch associated with this structure.

Required Methods§

Source

fn patch(&mut self, patch: Self::Patch)

Applies the given patch to update the structure.

Implementors§