[][src]Trait codegame::prelude::Diff

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

Associated Types

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

Loading content...

Required methods

pub fn diff(&self, to: &Self) -> Self::Delta[src]

pub fn update(&mut self, delta: &Self::Delta)[src]

Loading content...

Implementors

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

type Delta = T

Loading content...