Read the current value of the node state using the given accumulator. Returns a default value if the value is not present.
(
&self,
agg_r: &AccId<A, IN, OUT, ACC>,
)
| 186 | /// Read the current value of the node state using the given accumulator. |
| 187 | /// Returns a default value if the value is not present. |
| 188 | pub fn entry<A, IN, OUT, ACC: Accumulator<A, IN, OUT>>( |
| 189 | &self, |
| 190 | agg_r: &AccId<A, IN, OUT, ACC>, |
| 191 | ) -> Entry<'_, '_, A, IN, OUT, ACC, CS> |
| 192 | where |
| 193 | A: StateType, |
| 194 | OUT: std::fmt::Debug, |
| 195 | { |
| 196 | Entry::new( |
| 197 | self.node_state(), |
| 198 | *agg_r, |
| 199 | self.state_pos, |
| 200 | self.eval_graph.ss, |
| 201 | ) |
| 202 | } |
| 203 | |
| 204 | /// Read the prev value of the node state using the given accumulator. |
| 205 | /// Returns a default value if the value is not present. |