1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! Reactive key-set abstraction.
//!
//! `ReactiveKeys` is the minimal interface a collection needs to participate as
//! the parent side of a join: "tell me your keys, and notify me when they
//! change." Both [`CellMap`] and [`NestedMap`] implement it, so join logic is
//! written once and works with either.
//!
//! A semi-join's output is itself `ReactiveKeys`, which means it can feed
//! directly into the next join — enabling multi-step composition without ever
//! mentioning a concrete map type.
use Hash;
use crate::;
/// Notification for key-set membership changes.
/// A reactive set of keys that notifies subscribers when membership changes.
///
/// This is the *minimum* a parent collection needs to expose for a join to
/// function — no values, just key presence and change notifications.
///
/// # Implementors
///
/// | Type | `Key` |
/// |---|---|
/// | `CellMap<K, V>` | `K` |
/// | `NestedMap<PK, K, V>` | `K` |
/// | semi-join output | parent `K` (filtered) |
/// | anti-join output | parent `K` (filtered) |