pub trait Apply: Core + Clone + Debug + PartialEq {
// Required method
fn apply(&self, delta: Self::Delta) -> DeltaResult<Self>;
}
Required Methods§
sourcefn apply(&self, delta: Self::Delta) -> DeltaResult<Self>
fn apply(&self, delta: Self::Delta) -> DeltaResult<Self>
Calculate a new instance of Self
based on self
and delta
i.e. calculate self --[delta]--> other
.
^^^^^