We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e0e0734 + 1601da0 commit 29e9029Copy full SHA for 29e9029
vm/src/function.rs
@@ -22,6 +22,7 @@ use crate::vm::VirtualMachine;
22
/// A `PyRef<T>` can be directly returned from a built-in function to handle
23
/// situations (such as when implementing in-place methods such as `__iadd__`)
24
/// where a reference to the same object must be returned.
25
+#[derive(Clone)]
26
pub struct PyRef<T> {
27
// invariant: this obj must always have payload of type T
28
obj: PyObjectRef,
0 commit comments