Clears all populated results so the container can be reused.
(&self)
| 233 | |
| 234 | /// Clears all populated results so the container can be reused. |
| 235 | pub fn clear(&self) { |
| 236 | for slot in self.slots.iter() { |
| 237 | *slot.lock().unwrap() = None; |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | /// Returns true if `this` and `other` point to the same shared container. |
| 242 | pub fn ptr_eq(this: &Self, other: &Self) -> bool { |