Load the current value of the `AtomicNodeIndex`.
(&self)
| 167 | |
| 168 | /// Load the current value of the `AtomicNodeIndex`. |
| 169 | pub fn load(&self) -> NodeIndex { |
| 170 | let index = NonZeroU32::new(self.0.load(Ordering::Relaxed)) |
| 171 | .expect("value stored was a valid `NodeIndex`"); |
| 172 | |
| 173 | NodeIndex(index) |
| 174 | } |
| 175 | |
| 176 | /// Set the value of the `AtomicNodeIndex`. |
| 177 | pub fn set(&self, index: NodeIndex) { |
no test coverage detected