(&self, id: Hash)
| 107 | } |
| 108 | |
| 109 | fn active(&self, id: Hash) -> bool { |
| 110 | // A reverse can reference only an already declared immutable effect, |
| 111 | // so this effect-reference graph cannot contain a cycle. |
| 112 | !self.effects.iter().any(|(candidate, effect)| { |
| 113 | matches!(effect, Effect::Reverse { observed } if *observed == id) |
| 114 | && self.active(*candidate) |
| 115 | }) |
| 116 | } |
| 117 | |
| 118 | fn project(&self) -> Projection { |
| 119 | let mut projection = Projection::default(); |