id_effect 0.9.0

Effect<A, E, R>: lazy Send effects over a typed capability list, run on a fiber runtime (Tokio executor), with layers, streams, schedules and coordination
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Ex 087 — `EffectData` enables structural equality/hash for domain values.
use id_effect::EffectData;

#[derive(Clone, Debug, EffectData)]
struct Point {
  x: i32,
  y: i32,
}

fn main() {
  let a = Point { x: 1, y: 2 };
  let b = Point { x: 1, y: 2 };
  assert_eq!(a, b);
  println!("087_effect_data ok");
}