id_effect 0.1.0

Effect<A, E, R> (sync + async), context/layers, pipe — interpreter-style, no bundled executor
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");
}