[]Trait geng::prelude::Diff

pub trait Diff: 'static + Clone + PartialEq<Self> + Send + Sync + for<'de> Deserialize<'de> + Serialize + Trans {
    type Delta: 'static + Clone + Send + Sync + for<'de> Deserialize<'de> + Serialize + Trans;
    fn diff(&self, to: &Self) -> Self::Delta;
fn update(&mut self, delta: &Self::Delta); }

Associated Types

type Delta: 'static + Clone + Send + Sync + for<'de> Deserialize<'de> + Serialize + Trans

Loading content...

Required methods

fn diff(&self, to: &Self) -> Self::Delta

fn update(&mut self, delta: &Self::Delta)

Loading content...

Implementors

impl<T> Diff for T where
    T: 'static + PartialEq<T> + Send + Copy + Sync + for<'de> Deserialize<'de> + Serialize + Trans

type Delta = T

Loading content...