Skip to main content

Apply

Trait Apply 

Source
pub trait Apply<Delta> {
    type Error;

    // Required method
    fn apply(&mut self, delta: Delta) -> Result<(), Self::Error>;
}
Expand description

Operation-based merge

§Laws

  • Atomicity: If x.apply(d) fails, x is unchanged
  • Coherence with Join: If Self: Join and Delta = Self, then x.apply(y) succeeds and is the same as x.join(y)

§References

Required Associated Types§

Required Methods§

Source

fn apply(&mut self, delta: Delta) -> Result<(), Self::Error>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§