Trait batbox::Diff[][src]

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

Associated Types

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

Loading content...

Required methods

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

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

Loading content...

Implementors

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

type Delta = Self

Loading content...