(&self, pyref: PyRef<T>, vm: &VirtualMachine)
| 334 | } |
| 335 | |
| 336 | pub fn swap_to_temporary_refs(&self, pyref: PyRef<T>, vm: &VirtualMachine) { |
| 337 | let old = unsafe { self.swap(pyref) }; |
| 338 | if let Some(frame) = vm.current_frame() { |
| 339 | frame.temporary_refs.lock().push(old.into()); |
| 340 | } |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | impl<T: PyPayload> From<Option<PyRef<T>>> for PyAtomicRef<Option<T>> { |
no test coverage detected